# GQNER **Repository Path**: JohnRain/GQNER ## Basic Information - **Project Name**: GQNER - **Description**: 广清平台命名实体识别 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-10-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 广清舆情关键词抽取 Author: 中大 卓润 ## 环境配置 ``` Ubuntu 16.04 python 3.6.5 ``` 安装python依赖包 ```shell pip install -r requirement.txt -i https://pypi.tuna.tsinghua.edu.cn/simple ``` ## 数据预处理 ``` python -m ner.datautil ``` ## 训练模型 ```python from ner.module import NER ner_model = NER() train_path = 'data/train.sample.txt' dev_path = 'data/test.sample.txt' ner_model.train(train_path, vectors_path=None, dev_path=dev_path, save_path='./GQNER_save') ``` ## 验证模型 ```shell python verify.py ``` ### 评估结果: Accuracy: 说明: Accuracy表示 Recall: 说明: Recall ## 模型调用 ```python from ner.module import NER ner_model = NER() ner_model.load('./GQNER_save') entities = ner_model.predict("通证积分可以转公司原始股权") # out # ['原始股'] ```