Comments (7)
from pytorch_bert_bilstm_crf_ner.
作者你好,我想问问,换成BIO类型的数据应该怎么做?
可以先将这些数据转换为mid_data下数据的格式。
from pytorch_bert_bilstm_crf_ner.
作者你好,我想问问,换成BIO类型的数据应该怎么做?
可以先将这些数据转换为mid_data下数据的格式。
不好意思啊,我试了好久,通过process.py得到了mid_data下的json格式,但是把json数据转pkl类型的时候总是出错,
所以想问问,data文件夹里哪个py文件是可以转成pkl格式的?谢谢了!
from pytorch_bert_bilstm_crf_ner.
作者你好,我想问问,换成BIO类型的数据应该怎么做?
可以先将这些数据转换为mid_data下数据的格式。
不好意思啊,我试了好久,通过process.py得到了mid_data下的json格式,但是把json数据转pkl类型的时候总是出错, 所以想问问,data文件夹里哪个py文件是可以转成pkl格式的?谢谢了!
preprocess.py里面修改数据集名称和文本长度。然后运行它。
from pytorch_bert_bilstm_crf_ner.
作者你好,谢谢你的帮助,之前都解决了!
但是最后运行predict.py的时候,发现没有评价指标,只是将raw_text这个单句文本里的实体识别了出来,所以我想问问,metricsUtils.py这个文件怎么和predict.py文件联系到一起?主要是metricsUtils.py这个里面方法的参数有些没有注释,不知道是什么意思,麻烦你了。
from pytorch_bert_bilstm_crf_ner.
作者你好,谢谢你的帮助,之前都解决了! 但是最后运行predict.py的时候,发现没有评价指标,只是将raw_text这个单句文本里的实体识别了出来,所以我想问问,metricsUtils.py这个文件怎么和predict.py文件联系到一起?主要是metricsUtils.py这个里面方法的参数有些没有注释,不知道是什么意思,麻烦你了。
main.py里面有test打印评价指标的,predict.py只是单独进行预测的。
from pytorch_bert_bilstm_crf_ner.
谢谢帮助,解决了!
from pytorch_bert_bilstm_crf_ner.
Related Issues (20)
- 使用数据集cner训练bert-bilstm和bert-bilstm-crf模型后,运行predict.py报错 HOT 1
- 大佬您好,使用您的cner任务,使用的是最初始的参数,use crf打开后,训练89轮报错,无法进行eval和保存模型 HOT 14
- 大哥你好。我想问一下File "/home/vrlab/wwt/pytorch_bert_bilstm_crf_ner-main/bert_base_model.py", line 11, in __init__ assert os.path.exists(bert_dir) and os.path.exists(config_path), \ AssertionError: pretrained bert file does not exist是为啥 HOT 5
- 运行问题 HOT 6
- 您好 HOT 9
- 大佬您好,可以帮忙看看这个bug吗 HOT 13
- 导出onnx问题 Error(s) in loading state_dict for BertNerModel: Unexpected key(s) in state_dict: "linear.weight", "linear.bias". HOT 2
- 对BERT模型进行继续预训练对提高性能是否有帮助? HOT 4
- 训练自己的数据,内存占用一直增长,直到吃满内存 HOT 2
- 请问一小pkl文件怎么处理得到? HOT 1
- > 我加你qq吧,你说下。 HOT 2
- 关于使用CRF文件将BERT+CRF模型转换为ONNX的问题 HOT 6
- 网页问题 HOT 1
- 英文实体识别的问题 HOT 1
- RuntimeError: expected predicate to be bool, got torch.uint8 HOT 1
- Albert问题 HOT 2
- AssertionError: pretrained bert file does not exist HOT 1
- 更换数据集后报CUDA error: device-side assert triggered HOT 1
- 求一份分词数据集 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 pytorch_bert_bilstm_crf_ner.