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
Hello, I have a slight error when it comes to running the evaluation code using the pretrained model on another corpus that I preprocessed. When I try to run the evaluation code, this is the message I get: Load Brown clusters for creating features ... Load parsing models ... Load action classifier from file: ../data/model/model.action.gz with 110976 features and 4 actions. Load relation classifier from file: ../data/model/model.relation.gz with 35376 features at level 0, 17911 features at level 1, 16665 features at level 2, and 18 relations. Traceback (most recent call last): File "main.py", line 69, in <module> evaluator.eval_parser(path=args.eval_dir, report=True, bcvocab=brown_clusters, draw=False) File "/ihome/position-paper/StageDP2/src/eval/evaluation.py", line 64, in eval_parser met.eval(gold_rst, pred_rst) File "/ihome/position-paper/StageDP2/src/eval/metrics.py", line 42, in eval goldbrackets = goldtree.bracketing() File "/ihome/position-paper/StageDP2/src/models/tree.py", line 557, in bracketing relation = RstTree.extract_relation(node.relation) File "/ihome/position-paper/StageDP2/src/models/tree.py", line 501, in extract_relation return rel2class[s.lower()] KeyError: 'preparation'
Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered:
Hello, I have a slight error when it comes to running the evaluation code using the pretrained model on another corpus that I preprocessed. When I try to run the evaluation code, this is the message I get:
Load Brown clusters for creating features ... Load parsing models ... Load action classifier from file: ../data/model/model.action.gz with 110976 features and 4 actions. Load relation classifier from file: ../data/model/model.relation.gz with 35376 features at level 0, 17911 features at level 1, 16665 features at level 2, and 18 relations. Traceback (most recent call last): File "main.py", line 69, in <module> evaluator.eval_parser(path=args.eval_dir, report=True, bcvocab=brown_clusters, draw=False) File "/ihome/position-paper/StageDP2/src/eval/evaluation.py", line 64, in eval_parser met.eval(gold_rst, pred_rst) File "/ihome/position-paper/StageDP2/src/eval/metrics.py", line 42, in eval goldbrackets = goldtree.bracketing() File "/ihome/position-paper/StageDP2/src/models/tree.py", line 557, in bracketing relation = RstTree.extract_relation(node.relation) File "/ihome/position-paper/StageDP2/src/models/tree.py", line 501, in extract_relation return rel2class[s.lower()] KeyError: 'preparation'
Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: