Comments (10)
同样问题,请问你解决了吗?
from named_entity_recognition.
同问,请问解决了吗?
from named_entity_recognition.
在运行到crf模型时出现上述错误,查了很久,试了各种方法也没有解决,请问有没有人知道该如何解决呢?
环境:win10 python3.8
编码方式查过了是utf-8没错,但一直出现这个错误。求大神支招!
求解决方法
from named_entity_recognition.
只能用linux运行
from named_entity_recognition.
找到报错的地方,变量名加str()转换一下,
from named_entity_recognition.
在字符串前加小写r
from named_entity_recognition.
同问,请问解决了吗
from named_entity_recognition.
同问,在linux上运行crf时出现了这个问题
from named_entity_recognition.
我也遇到这个问题,求问怎么解决
from named_entity_recognition.
找到报错的地方,变量名加str()转换一下,
您好,请问是要加在哪里呢?
正在训练评估CRF模型...
Traceback (most recent call last):
File "D:\named_entity_recognition-master\named_entity_recognition-master\main.py", line 73, in
main()
File "D:\named_entity_recognition-master\named_entity_recognition-master\main.py", line 29, in main
crf_pred = crf_train_eval(
File "D:\named_entity_recognition-master\named_entity_recognition-master\evaluate.py", line 43, in crf_train_eval
crf_model.train(str(train_word_lists), str(train_tag_lists))
File "D:\named_entity_recognition-master\named_entity_recognition-master\models\crf.py", line 23, in train
self.model.fit(str(features), str(tag_lists))
File "D:\anaconda\lib\site-packages\sklearn_crfsuite\estimator.py", line 331, in fit
trainer.train(self.modelfile.name, holdout=-1 if X_dev is None else 1)
File "pycrfsuite/_pycrfsuite.pyx", line 359, in pycrfsuite._pycrfsuite.BaseTrainer.train
File "", line 15, in string.from_py.__pyx_convert_string_from_py_std__in_string
UnicodeEncodeError: 'ascii' codec can't encode characters in position 9-10: ordinal not in range(128)
from named_entity_recognition.
Related Issues (20)
- potential fix in build_corpus
- potential fix in build_corpus
- RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.
- 使用BIO标注是否也能运用该代码 HOT 5
- 数据问题
- bilistm_crf模型中的为啥要sort_by_lengths(word_lists, tag_lists),作用是啥。 HOT 1
- recall
- 数据集问题
- 数据问题 HOT 2
- BiLstm-CRF
- 请问batch_size是在哪里设置的
- 想问一下bilstm+crf做推理的时候,为什么还要加入tag呢?
- 环境配置不成功 HOT 3
- 请问数据集有哪些需要注意的点吗
- HMM模型训练时状态转移矩阵,观测概率矩阵的问题
- 模型运行速度/调参
- 如何添加Bert模型
- emission.unsqueeze(2).expand(-1, -1, out_size, -1) + self.transition.unsqueeze(0)
- cuDNN error: CUDNN_STATUS_EXECUTION_FAILED
- UnicodeEncodeError: 'ascii' codec can't encode characters in position 9-10: ordinal not in range(128)为什么在训练CRF模型时会一直报错? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from named_entity_recognition.