|
@@ -51,7 +51,7 @@ public class EntityProcessPast extends EntityProcess {
|
|
|
}
|
|
|
pastLabel.addDiag(diag);
|
|
|
}
|
|
|
- //手术史
|
|
|
+ //手术名称
|
|
|
List<Lemma> operationLemmas = createEntityTree(aiOut, EntityEnum.OPERATION.toString());
|
|
|
for (Lemma lemma : operationLemmas) {
|
|
|
Operation operation = new Operation();
|
|
@@ -79,6 +79,17 @@ public class EntityProcessPast extends EntityProcess {
|
|
|
}
|
|
|
pastLabel.addOperation(operation);
|
|
|
}
|
|
|
+ //手术史
|
|
|
+ List<Lemma> operationHistoryLemmas = createEntityTree(aiOut, EntityEnum.OPERATION_KEYWORD.toString());
|
|
|
+ for (Lemma lemma : operationHistoryLemmas) {
|
|
|
+ Operation operation = new Operation();
|
|
|
+ operation.setName(lemma.getText());
|
|
|
+ if (lemma.isHaveChildren()) {
|
|
|
+ operation.setNegative(findNegative(lemma));//阴性
|
|
|
+ }
|
|
|
+ pastLabel.addOperation(operation);
|
|
|
+ }
|
|
|
+
|
|
|
//外伤史
|
|
|
List<Lemma> woundLemmas = createEntityTree(aiOut, EntityEnum.INJURY.toString());
|
|
|
for (Lemma lemma : woundLemmas) {
|