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
Dear @marcellacornia,
I'm trying to run test.py and can solve few errors.
but, I can't resolve below error
File "test.py", line 79, in
scores = predict_captions(model, dict_dataloader_test, text_field)
File "test.py", line 34, in predict_captions
gts = evaluation.PTBTokenizer.tokenize(gts)
File "C:\Users\CHOISJ-DT01\Desktop\git\meshed-memory-transformer\evaluation\tokenizer.py", line 62, in tokenize
p_tokenizer = subprocess.Popen(cmd, cwd=path_to_jar_dirname,
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 1311, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError:
cmd = ['java', '-cp', 'stanford-corenlp-3.4.1.jar', 'edu.stanford.nlp.process.PTBTokenizer', '-preserveLines', '-lowerCase', 'tmpkxubkapl'] #tmpkxubkapl is loaded with ground truth may be?
path_to_jar_dirname = C:\Users\CHOISJ-DT01\Desktop\git\meshed-memory-transformer\evaluation
I don't know where the error occured.
could you solve that? thanks!
The text was updated successfully, but these errors were encountered:
Dear @marcellacornia,
I'm trying to run test.py and can solve few errors.
but, I can't resolve below error
File "test.py", line 79, in
scores = predict_captions(model, dict_dataloader_test, text_field)
File "test.py", line 34, in predict_captions
gts = evaluation.PTBTokenizer.tokenize(gts)
File "C:\Users\CHOISJ-DT01\Desktop\git\meshed-memory-transformer\evaluation\tokenizer.py", line 62, in tokenize
p_tokenizer = subprocess.Popen(cmd, cwd=path_to_jar_dirname,
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 1311, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError:
I don't know where the error occured.
could you solve that? thanks!
The text was updated successfully, but these errors were encountered: