shuxinyin / ner-pytorch-chinese Goto Github PK
View Code? Open in Web Editor NEWImplemention of NER model on chinese dataset.
License: MIT License
Implemention of NER model on chinese dataset.
License: MIT License
from processors.processor import LEBertProcessor, BertProcessor
ModuleNotFoundError: No module named 'processors.processor'
这是安装提示processors in /share/home/.local/lib/python3.7/site-packages (0.0.2)
processors模块应该是processors这个文件夹里的processor.py文件吧 怎么也找不到模块 难受,我直接把processor.py文件拖到了报错的model_class下面 但是我不知道是哪里的路径没改对 他才会找不到processor文件夹呢
这是我的配置,bert_chinese,tencent-ailab-embedding-zh-d200-v0.2.0-s.txt是下载的文件,不知道是不是还缺了要改的地方,运行不起来
兄弟,代码完善了再上传git呀,有的目录根本没有,程序中还import了~~~~比如:from model_class import MODEL_CLASS, PROCESSOR_CLASS
您好,我再运行这个train.py文件时,出现以下错误:
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'NER-Pytorch-Chinese-master/data/Learn_Project/Backup_Data/bert_chinese'. Use repo_type
argument if needed.
这个错误是为什么呢?需要怎么处理呀?
请问以CRF为解码层的模型是如何进行label smoothing的?我看代码的时候没有看到相关的代码,请大佬指出!
您好,在process.py文件中的init函数下(如下代码所示)
def init(self, pretrain_embed_path, output_path, max_scan_num, data_files, label_path, overwrite):
word_embed_path = join(self.data_path, 'word_embedding.pkl')
word_vocab_path = join(self.data_path, 'word_vocab.pkl')
word_vocab_path_ = join(self.data_path,'word_vocab.pkl)
trie_tree_path = join(self.data_path, 'trie_tree.pkl')
以上self.data_path下中的 'word_embedding.pkl'、'word_vocab.pkl‘、'word_vocab.pkl’、'trie_tree.pkl'都找不到是什么原因呢?
请问在msra和ontonotes两个数据集上实验时,script/train.sh中的epoch数分别是多少呢?超参数都一样吗?可不可以提供下具体的配置文件?
还有,预训练的中文版bert是官方的bert-base-chinese吗?
File "/share/home/NER-Pytorch-Chinese-master-1/train/train.py", line 187, in evaluate
metric.update(pred_paths=[pred], label_paths=[label])
File "../metrics/ner_metrics.py", line 56, in update
pre_entities = get_entities(pre_path, self.id2label,self.markup)
File "../utils/get_entity.py", line 117, in get_entities
return get_entity_bios(seq,id2label)
File "../utils/get_entity.py", line 19, in get_entity_bios
tag_str = id2label[tag]
TypeError: list indices must be integers or slices, not list
softmax没有问题,请问怎么回事呢,对了我是把nbest改成了3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.