nlpyang / BertSum

Code for paper Fine-tune BERT for Extractive Summarization
Apache License 2.0
1.46k stars 422 forks source link

FileNotFoundError #126

Open xiaomengxin123 opened 2 years ago

xiaomengxin123 commented 2 years ago

raceback (most recent call last): File "preprocess.py", line 74, in <module> eval('data_builder.'+args.mode + '(args)') File "<string>", line 1, in <module> File "D:\Text-Summarization-with-Pretrained-Encoders\PreSumm-master\src\prepro\data_builder.py", line 133, in tokenize subprocess.call(command) File "D:\ProgramData\Anaconda3\envs\py37-11-2\lib\subprocess.py", line 339, in call with Popen(*popenargs, **kwargs) as p: File "D:\ProgramData\Anaconda3\envs\py37-11-2\lib\subprocess.py", line 800, in __init__ restore_signals, start_new_session) File "D:\ProgramData\Anaconda3\envs\py37-11-2\lib\subprocess.py", line 1207, in _execute_child startupinfo) FileNotFoundError: [WinError 2] 。 when I try to prosess the step 3 in windows, it hints fileNotFound .And my command is ''python preprocess.py -mode tokenize -raw_path ../raw_stories -save_path ../merged_stories_tokenized"

WSChange commented 6 months ago

you should check your file path.