Closed rfjiangfdu closed 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
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