Stanford relation extractor is a Java implementation to find relations between two entities. The current relation extraction model is trained on the relation types (except the ‘kill’ relation) and data from the paper Roth and Yih, Global inference for entity and relation identification via a linear programming formulation, 2007, except instead of using the gold NER tags, we used the NER tags predicted by Stanford NER classifier to improve generalization. The default model predicts relations Live_In, Located_In, OrgBased_In, Work_For, and None.

Property name Annotator class name Generated Annotation
relation RelationExtractorAnnotator MachineReadingAnnotations.RelationMentionsAnnotation

More information

For more details of how to use and train your own model, see this page