private void countEntityMentionPairs(JCas jCas, JCas goldView) {
for(Sentence sentence : JCasUtil.select(jCas, Sentence.class)) {
if(targetRelationType.equals("location_of")) {
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);