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
}
}