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
{{ message }}
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
Example call and error message (starting from the Traceback line it's the same error for RNNG):
$ lm-zoo get-surprisals JRNN metamorphosis.txt
Tokenizer v3
Language: en
/opt/bin/get_surprisals: line 12: 13 Killed python ${JRNN_ROOT}/eval_test_google.py --pbtxt ${JRNN_ROOT}/graph-2016-09-10.pbtxt --ckpt '/opt/lm_1b/ckpt-*' --vocab_file ${JRNN_ROOT}/vocab-2016-09-10.txt --mode surprisal --input_file /tmp/input_tokenized --output_file -
Traceback (most recent call last):
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/bin/lm-zoo", line 6, in <module>
lm_zoo()
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/lm_zoo/commands.py", line 47, in __call__
raise e
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/lm_zoo/commands.py", line 40, in __call__
return self.main(*args, **kwargs)
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/click/decorators.py", line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/lm_zoo/commands.py", line 200, in get_surprisals
ret = Z.get_surprisals(model, sentences, backend=state.requested_backend)
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/lm_zoo/__init__.py", line 116, in get_surprisals
ret = pd.read_csv(StringIO(out_value), sep="\t").set_index(["sentence_id", "token_id"])
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/pandas/io/parsers.py", line 676, in parser_f
return _read(filepath_or_buffer, kwds)
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/pandas/io/parsers.py", line 448, in _read
parser = TextFileReader(fp_or_buf, **kwds)
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/pandas/io/parsers.py", line 880, in __init__
self._make_engine(self.engine)
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/pandas/io/parsers.py", line 1114, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/Users/rlevy/opt/miniconda3/envs/lm-zoo/lib/python3.7/site-packages/pandas/io/parsers.py", line 1891, in __init__
self._reader = parsers.TextReader(src, **kwds)
File "pandas/_libs/parsers.pyx", line 532, in pandas._libs.parsers.TextReader.__cinit__
pandas.errors.EmptyDataError: No columns to parse from file
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Example call and error message (starting from the
Traceback
line it's the same error for RNNG):The text was updated successfully, but these errors were encountered: