IBM / Grapher

Code that implements efficient knowledge graph extraction from the textual descriptions
Apache License 2.0
135 stars 30 forks source link

Add documentation on how to use a model after it is trained. #6

Open gilljon opened 1 year ago

gilljon commented 1 year ago

How do we actually use the trained model? How would we feed in text and get the graph associated with that text?

f1amigo commented 1 year ago

I have the same problem as well and would appreciate any help on this. Thanks!

imelnyk commented 1 year ago

I have updated main.py and README to include inference step. This is just a single input inference, which converts one input text into graph, using earlier trained model. All you have to do is to set --run inference and --inference_input_text "your input text".