Dynamic-Clip-Attention icon indicating copy to clipboard operation
Dynamic-Clip-Attention copied to clipboard

SyntaxError: positional argument follows keyword argument

Open tjyjy opened this issue 5 years ago • 1 comments

F:\Anaconda3\python.exe E:/Dynamic-Clip-Attention-master/preprocess.py File "E:/Dynamic-Clip-Attention-master/preprocess.py", line 116 Util.generate_vocab(file_list=["./data/trecqa/train-all.txt","./data/trecqa/clean-dev.txt","./data/trecqa/clean-test.txt"],output_file="./data/trecqa/vocab_trec.txt","trecqa") ^ SyntaxError: positional argument follows keyword argument

Process finished with exit code 1

tjyjy avatar Jul 03 '19 07:07 tjyjy

put "trecqa" before file_list variable Util.generate_vocab("trecqa",file_list=["./data/trecqa/train-all.txt","./data/trecqa/clean-dev.txt","./data/trecqa/clean-test.txt"],output_file="./data/trecqa/vocab_trec.txt")

Do the same for wikiqa

sharansh123 avatar Sep 04 '19 08:09 sharansh123