ChineseNER icon indicating copy to clipboard operation
ChineseNER copied to clipboard

中文命名实体识别,实体抽取,tensorflow,pytorch,BiLSTM+CRF

Results 26 ChineseNER issues
Sort by recently updated
recently updated
newest added

报错信息为: Traceback (most recent call last): File "train2pkl.py", line 94, in from compiler.ast import flatten ImportError: No module named 'compiler.ast' 网上查阅资料说是因为在python3以后这段话就被废除了,请问如何解决呢?

Traceback (most recent call last): File "train.py", line 87, in test_input(model,sess,word2id,id2tag,batch_size) File "/mnt/ChineseNER-master/tensorflow/utils.py", line 169, in test_input entity = get_entity(text,pre[0],id2tag) File "/mnt/ChineseNER-master/tensorflow/utils.py", line 40, in get_entity entity=id2tag[y[i][j]][1:]+':'+x[i][j] File "/usr/lib/python2.7/encodings/utf_8.py", line...

with open(label_path, "w") as fw: line = [] for sent_result in label_predict: for char, tag, tag_ in sent_result: tag = '0' if tag == 'O' else tag char = char.encode("utf-8")...

我下载了腾讯新推出的数据集,有十几个G。请问如何加入到您的项目中,使训练集更加准确呢?

已经下载了您的项目,但是初学者面对这些内容不知道该从何下手。博主有什么建议掌握项目运行的步骤呢?

tensorflow版本的tran.py文件在加载预训练向量的时候,原始的是word2id找到的是id,而不是字,word2vec里的词向量都是以字为主的,所以word2id应该改成id2word. 如果不改的话 也是能用的,不过embedding_pre全部是111111111,而不是vec.txt里的字向量。建议楼主改下这个坑,很难发现的。

你好,“文章链接打开了”,能否重新发一下链接,或者给你文章的名字

ValueError: Cannot feed value of shape (32, 60) for Tensor 'input_data:0', which has shape '(32, 50)'