Package edu.stanford.nlp.ie.machinereading.structure

Examples of edu.stanford.nlp.ie.machinereading.structure.RelationMentionFactory


  public RelationExtractorResultsPrinter(RelationMentionFactory factory) {
    this(factory, true);
  }
 
  public RelationExtractorResultsPrinter() {
    this(new RelationMentionFactory(), true);
  }
View Full Code Here


  public RelationExtractorResultsPrinter() {
    this(new RelationMentionFactory(), true);
  }
 
  public RelationExtractorResultsPrinter(boolean createUnrelatedRelations) {
    this(new RelationMentionFactory(), createUnrelatedRelations);
  }
View Full Code Here

  public void printResults(PrintWriter pw,
      List<CoreMap> goldStandard,
      List<CoreMap> extractorOutput) {
 
    featureFactory = MachineReading.makeRelationFeatureFactory(MachineReadingProperties.relationFeatureFactoryClass, MachineReadingProperties.relationFeatures, false);
    mentionFactory = new RelationMentionFactory(); // generic mentions work well in this domain
   
    ResultsPrinter.align(goldStandard, extractorOutput);
   
    List<RelationMention> relations = new ArrayList<RelationMention>();
    final Map<RelationMention,String> predictions = new HashMap<RelationMention,String>();
View Full Code Here

TOP

Related Classes of edu.stanford.nlp.ie.machinereading.structure.RelationMentionFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.