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

prediction for new texts broken - _json_to_instance uses dataset_reader #13

Open
kleinay opened this issue Sep 21, 2020 · 0 comments
Open

Comments

@kleinay
Copy link

kleinay commented Sep 21, 2020

When trying to use allennlp predict for parsing SDP on new texts, it raises an error. The reason is that in utils\transition_sdp_predictor.py, the SDPParserPredictor._json_to_instance method violating the documented contract: Expects JSON that looks like {"sentence": "..."}. The method instead assumes an MRP-formatted input file.

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