|
@@ -71,6 +71,7 @@ public class RelationExtractionModelFromHttp extends AlgorithmCNNExecutor {
|
|
String[] posRelationArray = indexPairAndRelations.split("\\|");
|
|
String[] posRelationArray = indexPairAndRelations.split("\\|");
|
|
for (int i = 0; i< triads.size(); i++) {
|
|
for (int i = 0; i< triads.size(); i++) {
|
|
if ("1".equals(posRelationArray[i])) {
|
|
if ("1".equals(posRelationArray[i])) {
|
|
|
|
+ System.out.println(triads.get(i).getL_1().getText() + "..." + triads.get(i).getL_2().getText() + " = " + posRelationArray[i]);
|
|
result.add(triads.get(i));
|
|
result.add(triads.get(i));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -92,7 +93,7 @@ public class RelationExtractionModelFromHttp extends AlgorithmCNNExecutor {
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
|
|
- return triads;
|
|
|
|
|
|
+ return result;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|