Closed nhatmin2002 closed 4 months ago
when run !lmqg-eval -m "/content/drive/MyDrive/testmodel/lmqg_output/t5-small-squad-ae/model_rcgffo/epoch_4" -e "/content/eval_metrics" -d "lmqg/qg_squad" -l "en" --max-length 256
Can you help me please
No description provided.
Hi, I actually have the error BrokenPipeError: [Errno 32] Broken pipe
in one of my server, and I am not sure why it happens on some specific machines. For sure that it's caused by the JAVA software to compute METEOR metric, so I will perhaps consider to change the implementation to something else, to make it free from JAVA.
raceback (most recent call last): File "/usr/local/bin/lmqg-eval", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/lmqg/lmqg_cl/model_evaluation.py", line 50, in main
metric = evaluate(
File "/usr/local/lib/python3.10/dist-packages/lmqg/automatic_evaluation.py", line 291, in evaluate
metric[_split] = get_metric(_split, _hypothesis_file, None)
File "/usr/local/lib/python3.10/dist-packages/lmqg/automatic_evaluation.py", line 272, in get_metric
__metric = compute_metrics(
File "/usr/local/lib/python3.10/dist-packages/lmqg/automatic_evaluation.py", line 148, in compute_metrics
score, scores = scorer.computescore(gts, resfiltered)
File "/usr/local/lib/python3.10/dist-packages/lmqg/automatic_evaluation_tool/meteor/meteor.py", line 116, in compute_score
stat = self._stat(hypo, gts[i])
File "/usr/local/lib/python3.10/dist-packages/lmqg/automatic_evaluation_tool/meteor/meteor.py", line 150, in _stat
self.meteor_p.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe