LeeSureman/Batch_Parallel_LatticeLSTM

请问在main.py文件的哪里加文件路径啊

yujh123 opened this issue · 22 comments

您好,您说在main.py中添加三个embedding的文件路径以及对应数据集的路径即可运行,具体是哪个地方呢?

yangjie_rich_pretrain_unigram_path
yangjie_rich_pretrain_bigram_path
yangjie_rich_pretrain_word_path
以上三个变量以及你需要运行的数据集路径

yangjie_rich_pretrain_unigram_path
yangjie_rich_pretrain_bigram_path
yangjie_rich_pretrain_word_path
以上三个变量以及你需要运行的数据集路径

谢谢您的回复,但是三个embedding文件不是数据集嘛。。。

就是把这三个变量和需要跑的数据集路径设置为对应的在你本机上的文件路径

就是把这三个变量和需要跑的数据集路径设置为对应的在你本机上的文件路径

那我想用Resume数据集,是从原作者的data文件里下载嘛?

是的,包括三个embedding文件的下载链接也在他仓库的readme里有

好的 谢谢您 我再运行一下试试

楼主和作者您好,作为小白,我还是没明白在哪里添加路径,三个数据集要怎么传进去呢,另外我只找到了两个embedding文件,,

你找到哪两个embedding文件

gigaword_chn.all.a2b.uni.ite50.vec
ctb.50d.vec
这两个

from pathes import *
//ontonote4ner_cn_path = 0
yangjie_rich_pretrain_unigram_path = ‘gigaword_chn.all.a2b.uni.ite50.vec’
yangjie_rich_pretrain_bigram_path = ctb.50d.vec‘’
resume_ner_path = ‘.data/resume’#里面有train、dev、test
//weibo_ner_path = 0
我是这么写的

ctb.50d.vec我记得是lexicon的向量

yangjie_rich_pretrain_unigram_path = ‘gigaword_chn.all.a2b.uni.ite50.vec’
yangjie_rich_pretrain_bigram_path = 'bigram...’
yangjie_rich_pretrain_word_path=‘ctb.50d.vec’
resume_ner_path = ‘.data/resume’#里面有train、dev、test
请问数据集可以这样导入么?
十分感谢您的回答

可以的

谢谢

请问运行时出现这个问题,但是代码load_data.py中已经注释掉了
,该怎么解决呀?
FileNotFoundError:/remote-home/xnli/data/corpus/swquence_labelling/chinese_ner/WeiboNER

你没改路径或没改用哪个dataset吧

weibo_ner_path = ‘.data/WeiboNER’//train.all.bmes、dev.all.bmes、test.all.bmes
我用的是这个路径,还需要修改load_data.py里的内容么

应该就好了呀

你看看你改的路径有没有被传到load_weibo_ner里去

感谢大佬,路径没传进去,我在pathes.py中重新修改的

好的,恭喜