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

Error running evaluation code #6

Open
katherine-atwell opened this issue Nov 8, 2020 · 0 comments
Open

Error running evaluation code #6

katherine-atwell opened this issue Nov 8, 2020 · 0 comments

Comments

@katherine-atwell
Copy link

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!

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

1 participant