|
@@ -58,20 +58,23 @@ public class EntityProcessEZaAll extends EntityProcess {
|
|
|
}
|
|
|
|
|
|
//输血史-
|
|
|
- List<Lemma> bloods = createEntityTree(aiOut, EntityEnum.NEGATIVE.toString());
|
|
|
+ List<Lemma> bloods = createEntityTree(aiOut, EntityEnum.BLOOD_TRANSFUSION.toString());
|
|
|
for (Lemma lemma : bloods) {
|
|
|
BloodTransfusion bloodTransfusionFir = new BloodTransfusion();
|
|
|
String text = lemma.getText();
|
|
|
if (lemma.isHaveChildren()) {
|
|
|
for (Lemma relationLemmaRec : lemma.getRelationLemmas()) {
|
|
|
BloodTransfusion bloodTransfusionSec = new BloodTransfusion();
|
|
|
- if (relationLemmaRec.getProperty().equals(EntityEnum.BLOOD_TRANSFUSION.toString())) {
|
|
|
- text = text+relationLemmaRec.getText();
|
|
|
+ if (relationLemmaRec.getProperty().equals(EntityEnum.NEGATIVE.toString())) {
|
|
|
+ text = relationLemmaRec.getText()+text;
|
|
|
bloodTransfusionSec.setName(text);
|
|
|
bloodTransfusions.add(bloodTransfusionSec);
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
+ if("输血史".equals(text)){
|
|
|
+ text = "有"+text;
|
|
|
+ }
|
|
|
bloodTransfusionFir.setName(text);
|
|
|
bloodTransfusions.add(bloodTransfusionFir);
|
|
|
}
|