评测的时候出现了问题

Traceback (most recent call last):
File "/workspace/src/ChERRANT/parallel_to_m2.py", line 38, in annotate
out, cors = annotator(source_tokenized, target_tokenized, idx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/src/ChERRANT/modules/annotator.py", line 58, in __call__
align_objs = self.align(src, tgt)
^^^^^^^^^^^^^^^^^^^^
File "/workspace/src/ChERRANT/modules/alignment.py", line 81, in __call__
align_seq = self.get_cheapest_align_seq(oper_matrix)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/src/ChERRANT/modules/alignment.py", line 320, in get_cheapest_align_seq
self._dfs(i, j , [], oper_matrix, "first")
File "/workspace/src/ChERRANT/modules/alignment.py", line 303, in _dfs
self._dfs(i - 1, j - 1, align_seq_now + [(op, i - 1, i, j - 1, j)], oper_matrix, strategy)
File "/workspace/src/ChERRANT/modules/alignment.py", line 303, in _dfs
self._dfs(i - 1, j - 1, align_seq_now + [(op, i - 1, i, j - 1, j)], oper_matrix, strategy)
File "/workspace/src/ChERRANT/modules/alignment.py", line 303, in _dfs
self._dfs(i - 1, j - 1, align_seq_now + [(op, i - 1, i, j - 1, j)], oper_matrix, strategy)
[Previous line repeated 1 more time]
File "/workspace/src/ChERRANT/modules/alignment.py", line 307, in _dfs
self._dfs(i, j - 1, align_seq_now + [(op, i, i, j - 1, j)], oper_matrix, strategy)
File "/workspace/src/ChERRANT/modules/alignment.py", line 307, in _dfs
self._dfs(i, j - 1, align_seq_now + [(op, i, i, j - 1, j)], oper_matrix, strategy)
File "/workspace/src/ChERRANT/modules/alignment.py", line 307, in _dfs
self._dfs(i, j - 1, align_seq_now + [(op, i, i, j - 1, j)], oper_matrix, strategy)
[Previous line repeated 385 more times]
File "/workspace/src/ChERRANT/modules/alignment.py", line 303, in _dfs
self._dfs(i - 1, j - 1, align_seq_now + [(op, i - 1, i, j - 1, j)], oper_matrix, strategy)
File "/workspace/src/ChERRANT/modules/alignment.py", line 303, in _dfs
self._dfs(i - 1, j - 1, align_seq_now + [(op, i - 1, i, j - 1, j)], oper_matrix, strategy)
File "/workspace/src/ChERRANT/modules/alignment.py", line 303, in _dfs
self._dfs(i - 1, j - 1, align_seq_now + [(op, i - 1, i, j - 1, j)], oper_matrix, strategy)
[Previous line repeated 3 more times]
File "/workspace/src/ChERRANT/modules/alignment.py", line 307, in _dfs
self._dfs(i, j - 1, align_seq_now + [(op, i, i, j - 1, j)], oper_matrix, strategy)
File "/workspace/src/ChERRANT/modules/alignment.py", line 307, in _dfs
self._dfs(i, j - 1, align_seq_now + [(op, i, i, j - 1, j)], oper_matrix, strategy)
File "/workspace/src/ChERRANT/modules/alignment.py", line 307, in _dfs
self._dfs(i, j - 1, align_seq_now + [(op, i, i, j - 1, j)], oper_matrix, strategy)
[Previous line repeated 499 more times]
File "/workspace/src/ChERRANT/modules/alignment.py", line 303, in _dfs
self._dfs(i - 1, j - 1, align_seq_now + [(op, i - 1, i, j - 1, j)], oper_matrix, strategy)
File "/workspace/src/ChERRANT/modules/alignment.py", line 303, in _dfs
self._dfs(i - 1, j - 1, align_seq_now + [(op, i - 1, i, j - 1, j)], oper_matrix, strategy)
File "/workspace/src/ChERRANT/modules/alignment.py", line 303, in _dfs
[Previous line repeated 40 more times]
RecursionError: maximum recursion depth exceeded
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/workspace/src/ChERRANT/parallel_to_m2.py", line 116, in <module>
main(args)
File "/workspace/src/ChERRANT/parallel_to_m2.py", line 90, in main
ret = annotate(line)
^^^^^^^^^^^^^^
File "/workspace/src/ChERRANT/parallel_to_m2.py", line 44, in annotate
raise Exception
Exception

英国
浏览 109
收藏
3
分享
3 +1
3
+1
全部评论 3
 
张子栋
张子栋

@金山办公

请同学离线使用https://github.com/HillZhang1999/MuCGEC/tree/main/scorers/ChERRANT工具,参考其readme.md文件,并使用parallel_to_m2.py脚本将平行文件转为m2文件,再定位问题。
· 湖北省
回复
 
张子栋
张子栋

@金山办公

请同学离线使用https://github.com/HillZhang1999/MuCGEC/tree/main/scorers/ChERRANT工具,参考其readme.md文件,并使用parallel_to_m2.py脚本将平行文件转为m2文件,再定位问题。
· 湖北省
回复
 
洋
插眼
· 广东省
回复