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
{{ message }}
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.
I really like how the Demo has Open Information Extraction. I had quick question regarding output. For example if I run the command provided from the demo:
from allennlp.predictors.predictor import Predictor
import allennlp_models.structured_prediction
predictor = Predictor.from_path("https://storage.googleapis.com/allennlp-public-models/openie-model.2020.03.26.tar.gz")
predictor.predict(
sentence="John decided to run for office next month."
)
Among few lines, I am getting something like this:
{'verbs': [{'description': '[ARG0: John] [V: decided] [ARG1: to run for office next month] .',
'tags': ['B-ARG0',
'B-V',
'B-ARG1',
'I-ARG1',
'I-ARG1',
'I-ARG1',
'I-ARG1',
'I-ARG1',
'O'],
'verb': 'decided'},
Is there anyway it can only print out [ARG0: John] [V: decided] [ARG1: to run for office next month] ?
Thank you
The text was updated successfully, but these errors were encountered:
Hello,
I really like how the Demo has Open Information Extraction. I had quick question regarding output. For example if I run the command provided from the demo:
Among few lines, I am getting something like this:
Is there anyway it can only print out
[ARG0: John] [V: decided] [ARG1: to run for office next month]
?Thank you
The text was updated successfully, but these errors were encountered: