Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(base) C:\Users\sk136\neuralcoref>python -m neuralcoref.train.learn --train ./data/train/ --eval ./data/dev/ facing problem while executing.. this command #346

Open
sandeep16064 opened this issue May 5, 2022 · 1 comment

Comments

@sandeep16064
Copy link

.
.
.
🌋 Construct test file
Writing in C:\Users\sk136\neuralcoref\neuralcoref\train\test_mentions.txt
🌋 Computing score
Error during the scoring
Command '['perl', 'C:\Users\sk136\neuralcoref\neuralcoref\train\scorer_wrapper.pl', 'muc', './data/dev//key.txt', 'C:\Users\sk136\neuralcoref\neuralcoref\train\test_mentions.txt']' returned non-zero exit status 2.
Can't locate CorScorer.pm in @inc (you may need to install the CorScorer module) (@inc contains: scorer/lib /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at C:\Users\sk136\neuralcoref\neuralcoref\train\scorer_wrapper.pl line 16.
BEGIN failed--compilation aborted at C:\Users\sk136\neuralcoref\neuralcoref\train\scorer_wrapper.pl line 16.

Traceback (most recent call last):
File "C:\Users\sk136\anaconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\sk136\anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\sk136\neuralcoref\neuralcoref\train\learn.py", line 565, in
run_model(args)
File "C:\Users\sk136\neuralcoref\neuralcoref\train\learn.py", line 175, in run_model
eval_evaluator.test_model()
File "C:\Users\sk136\neuralcoref\neuralcoref\train\evaluator.py", line 180, in test_model
self.get_score(file_path=ALL_MENTIONS_PATH)
File "C:\Users\sk136\neuralcoref\neuralcoref\train\evaluator.py", line 283, in get_score
scorer_out = subprocess.check_output(
File "C:\Users\sk136\anaconda3\lib\subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\sk136\anaconda3\lib\subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['perl', 'C:\Users\sk136\neuralcoref\neuralcoref\train\scorer_wrapper.pl', 'muc', './data/dev//key.txt', 'C:\Users\sk136\neuralcoref\neuralcoref\train\test_mentions.txt']' returned non-zero exit status 2.

perl related issue

@AngledLuffa
Copy link

Without knowing much about your setup, if you downloaded the scorer script from the conll bakeoffs, there's a good chance your downloaded package has a lib directory which has CorScorer.pm in it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants