Created
January 5, 2019 22:31
-
-
Save ducalpha/7a8464770419b4bd3bc89067e7cc78d0 to your computer and use it in GitHub Desktop.
Predict raw data in Allennlp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://ai.orbifold.net/default/what-is-semantic-role-labeling/ | |
instance = self.predictor._dataset_reader.text_to_instance(doc, verb_labels) | |
output = self.predictor._model.forward_on_instance(instance, -1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment