|
@@ -4,6 +4,7 @@ package com.lantone.qc.kernel.structure.ai.process;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.lantone.qc.kernel.structure.ai.model.EntityEnum;
|
|
import com.lantone.qc.kernel.structure.ai.model.EntityEnum;
|
|
import com.lantone.qc.kernel.structure.ai.model.Lemma;
|
|
import com.lantone.qc.kernel.structure.ai.model.Lemma;
|
|
|
|
+import com.lantone.qc.kernel.util.DiagEnhancer;
|
|
import com.lantone.qc.pub.model.entity.*;
|
|
import com.lantone.qc.pub.model.entity.*;
|
|
import com.lantone.qc.pub.model.label.FamilyLabel;
|
|
import com.lantone.qc.pub.model.label.FamilyLabel;
|
|
|
|
|
|
@@ -126,8 +127,7 @@ public class EntityProcessFamily extends EntityProcess {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
private Diag addDiags(Lemma diagLemma) {
|
|
private Diag addDiags(Lemma diagLemma) {
|
|
- Diag diag = new Diag();
|
|
|
|
- diag.setName(diagLemma.getText());
|
|
|
|
|
|
+ Diag diag = DiagEnhancer.create(diagLemma.getText());
|
|
if (diagLemma.isHaveChildren()) {
|
|
if (diagLemma.isHaveChildren()) {
|
|
diag.setNegative(findNegative(diagLemma));
|
|
diag.setNegative(findNegative(diagLemma));
|
|
}
|
|
}
|