WenRichard / KBQA-BERT

基于知识图谱的问答系统,BERT做命名实体识别和句子相似度,分为online和outline模式
MIT License
1.45k stars 349 forks source link

运行run_ner.py时未找到dev.txt,请问这个文件是怎么生成的呢 #5

Closed rfjiangfdu closed 5 years ago

rfjiangfdu commented 5 years ago

Traceback (most recent call last): File "run_ner.py", line 865, in tf.app.run() File "/home/rfjiangfdu/anaconda3/envs/python3.6/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run _sys.exit(main(argv)) File "run_ner.py", line 700, in main eval_examples = processor.get_dev_examples(FLAGS.data_dir) File "run_ner.py", line 213, in get_dev_examples self._read_data(os.path.join(data_dir, "dev.txt")), "dev" File "run_ner.py", line 179, in _read_data with codecs.open(input_file, 'r', encoding='utf-8') as f: File "/home/rfjiangfdu/anaconda3/envs/python3.6/lib/python3.6/codecs.py", line 897, in open file = builtins.open(filename, mode, buffering) FileNotFoundError: [Errno 2] No such file or directory: './Data/NER_Data/dev.txt

WenRichard commented 5 years ago

Traceback (most recent call last): File "run_ner.py", line 865, in tf.app.run() File "/home/rfjiangfdu/anaconda3/envs/python3.6/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run _sys.exit(main(argv)) File "run_ner.py", line 700, in main eval_examples = processor.get_dev_examples(FLAGS.data_dir) File "run_ner.py", line 213, in get_dev_examples self._read_data(os.path.join(data_dir, "dev.txt")), "dev" File "run_ner.py", line 179, in _read_data with codecs.open(input_file, 'r', encoding='utf-8') as f: File "/home/rfjiangfdu/anaconda3/envs/python3.6/lib/python3.6/codecs.py", line 897, in open file = builtins.open(filename, mode, buffering) FileNotFoundError: [Errno 2] No such file or directory: './Data/NER_Data/dev.txt

把生成的test.txt copy, 改成dev.txt