c-amr / camr

Transition-based tree-to-graph AMR Parser
GNU General Public License v2.0
125 stars 44 forks source link

Pre-proceccing issue urllib.ContentTooShortError #22

Closed anjalie-ch closed 5 years ago

anjalie-ch commented 5 years ago

no matter the content of my text file I keep running into this issue:

$ python amr_parsing.py -m preprocess text2 Read token,lemma,name entity file text2.prp...

Traceback (most recent call last): File "amr_parsing.py", line 436, in main() File "amr_parsing.py", line 169, in main instances = preprocess(amr_file,START_SNLP=True,INPUT_AMR=args.amrfmt, PRP_FORMAT=args.prpfmt) File "/home/anjalie/AMRParsing/preprocessing.py", line 504, in preprocess dparser.parse(tok_sent_filename) File "/home/anjalie/AMRParsing/depparser.py", line 29, in parse path_to_model = download_and_install_model(model_type,'./bllip-parser/models') File "/home/anjalie/.local/lib/python2.7/site-packages/bllipparser/ModelFetcher.py", line 124, in download_and_install_model reporthook=status_func) File "/usr/lib/python2.7/urllib.py", line 289, in retrieve "of %i bytes" % (read, size), result) urllib.ContentTooShortError: retrieval incomplete: got only 26754356 out of 86444864 bytes