You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR] Timeout
Traceback (most recent call last):
File "/Users/Rainbow/Desktop/AMR/AMRParsing/stanfordnlp/corenlp.py", line 508, in parse
data = parse_parser_results_new(result)
File "/Users/Rainbow/Desktop/AMR/AMRParsing/stanfordnlp/corenlp.py", line 154, in parse_parser_results_new
seqs = re.split("\r\n", text)
File "/anaconda3/lib/python3.7/re.py", line 213, in split
return _compile(pattern, flags).split(string, maxsplit)
TypeError: expected string or bytes-like object
Traceback (most recent call last):
File "amr_parsing.py", line 437, in
main()
File "amr_parsing.py", line 170, in main
instances = preprocess(amr_file,START_SNLP=True,INPUT_AMR=args.amrfmt, PRP_FORMAT=args.prpfmt)
File "/Users/Rainbow/Desktop/AMR/AMRParsing/preprocessing.py", line 439, in preprocess
instances = proc1.parse(tmp_sent_filename)
File "/Users/Rainbow/Desktop/AMR/AMRParsing/stanfordnlp/corenlp.py", line 511, in parse
raise e
File "/Users/Rainbow/Desktop/AMR/AMRParsing/stanfordnlp/corenlp.py", line 508, in parse
data = parse_parser_results_new(result)
File "/Users/Rainbow/Desktop/AMR/AMRParsing/stanfordnlp/corenlp.py", line 154, in parse_parser_results_new
seqs = re.split("\r\n", text)
File "/anaconda3/lib/python3.7/re.py", line 213, in split
return _compile(pattern, flags).split(string, maxsplit)
TypeError: expected string or bytes-like object
"The input data format for parsing should be raw document with one sentence per line."
I put a sentence in a file without a suffix ending in a period like the above, but the files after preprocessing are all 0 bytes.
Why is that?
Please help me, thank you very much!!!!
The text was updated successfully, but these errors were encountered: