Examples of DegreeOfRelationExtractorAnnotator


Examples of org.apache.ctakes.relationextractor.ae.DegreeOfRelationExtractorAnnotator

        LocationOfRelationExtractorAnnotator emPairAnnot = new LocationOfRelationExtractorAnnotator();
        List<IdentifiedAnnotationPair> pairs = emPairAnnot.getCandidateRelationArgumentPairs(goldView, sentence);
        entityMentionPairCount += pairs.size();
      }
      if(targetRelationType.equals("degree_of")) {
        DegreeOfRelationExtractorAnnotator degreeOfAnnot = new DegreeOfRelationExtractorAnnotator();
        List<IdentifiedAnnotationPair> pairs = degreeOfAnnot.getCandidateRelationArgumentPairs(goldView, sentence);
        entityMentionPairCount += pairs.size();
      }
    }
  }
View Full Code Here

Examples of org.apache.ctakes.relationextractor.ae.DegreeOfRelationExtractorAnnotator

          String type2 = getEntityType(pair.getArg2().getTypeID());
          entityMentionPairTypes.add(type1 + " - " + type2);
        }
      }
      if(targetRelationType.equals("degree_of")){
        DegreeOfRelationExtractorAnnotator degreeOfAnnot = new DegreeOfRelationExtractorAnnotator();
        List<IdentifiedAnnotationPair> pairs = degreeOfAnnot.getCandidateRelationArgumentPairs(goldView, sentence);
        for(IdentifiedAnnotationPair pair : pairs) {
          String type1 = getEntityType(pair.getArg1().getTypeID());
          entityMentionPairTypes.add(type1 + " - " + "modifier"); // type2 is always modifier for degree_of
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.