dwadden / dygiepp

Span-based system for named entity, relation, and event extraction.
MIT License
571 stars 120 forks source link

How to make inferences from the pretrained model #47

Closed tanmayag78 closed 3 years ago

tanmayag78 commented 3 years ago

I have not yet dived deep into the model code. I ran the allennlp predict as mentioned in the docs. It printed the inferences in the terminal. So is there any way to predict the relations,events etc from the shell. A demo in Jupyter Notebook will be very useful.

dwadden commented 3 years ago

There's an --output-file flag that you can use to specify where the json results should go. This is described in the README: https://github.com/dwadden/dygiepp#making-predictions-on-existing-datasets. I hope that helps!