当前位置:网站首页>命名实体识别之CRF的实现方式
命名实体识别之CRF的实现方式
2022-06-11 08:24:00 【小小梁的实验室】
方法1:基于CRF++实现NER
CRF++是著名的条件随机场的开源工具,也是目前综合性能最佳的CRF工具,采用C++语言编写而成。其最重要的功能我认为是采用了特征模板。这样就可以自动生成一系列的特征函数,而不用我们自己生成特征函数,我们要做的就是寻找特征,比如词性等。
官网地址:http://taku910.github.io/crfpp/
实践2:基于sklearn_crfsuite实现NER
sklearn-crfsuite是基于CRFsuite库的一款轻量级的CRF库。该库兼容sklearn的算法,因此可以结合sklearn库的算法设计实体识别系统。sklearn-crfsuite不仅提供了条件随机场的训练和预测方法还提供了评测方法。
https://sklearn-crfsuite.readthedocs.io/en/latest/#
安装:pip install sklearn-crfsuitesklearn-crfsuite安装的一系列问题:
1.打开Anaconda Prompt,先将环境切换到pytorch下面(相关环境配置都在此)
activate pytorch
2.采用pip安装,报错

3.参考大佬的博客,增加清华源pip清华源(清华大学国内镜像)安装地址_奋斗乌托邦的博客-CSDN博客_清华源
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 包名

边栏推荐
- Training yolov4 CSP model using coco dataset
- Login and parameterization of interface test
- torch. unbind()
- AttributeError: module ‘tensorflow. compat. v2.__ internal__‘ has no attribute ‘register_ clear_ session_
- Anaconda related knowledge supplement (spyder+keras Library)
- Solve cannot import name 'multiheadattention' from 'tensorflow keras. layers‘
- TypeScript-可辨识联合
- Icml2022 article intéressant
- Typescript header file usage details
- TypeScript-null和undefined
猜你喜欢

BFS on tree (tree breathing first search)

How to start participating in the open source community

These gadgets are also very easy to use

Solution to the occurrence interval (space) of latex manual numbering documents

Qiao lerna: lerna auxiliary tool
![[software tools] screen recording software captura](/img/79/705bb40fc15322243880f3b9864f2b.jpg)
[software tools] screen recording software captura

TypeScript-头文件使用细节

How to do well in empty state design? Look at this comprehensive summary

JS learning basics document Write write a line of text in the page

qiao-lerna:lerna辅助工具
随机推荐
Asynchronous notification mechanism of character device driver
Typescript distributed condition type
Mongodb--- automatically delete expired data using TTL index
Idea annotation settings
node报错整理
Solve ('You must install pydot (`pip install pydot`) and install graphviz (see...) '‘ for plot_ model..
Entity class conversion cannot be reassigned
Empty difference between postgrepsql and Oracle
Introduction to database system experiment report answer Experiment 5: database single table query
Dameng database login
(resolved) typeerror: meshgrid() got an unexpected keyword argument 'indexing‘
Method summary of creating deep learning model with keras/tensorflow 2.9
How CSDN reports plagiarized articles
Qiao NPMS: get the download volume of NPM packages
TypeScript-头文件使用细节
TypeScript-命名空间
Pypharm startup is stuck, loading project
Typescript enumeration
[the most complete ENSP [installation diagram] in history!]
ICML2022有意思的文章