|
@@ -5,8 +5,10 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
import com.lantone.qc.kernel.structure.ai.BeHospitalizedAI;
|
|
|
import com.lantone.qc.kernel.structure.ai.model.ConflictFinder;
|
|
|
+import com.lantone.qc.kernel.structure.ai.model.EntityBlock;
|
|
|
import com.lantone.qc.kernel.structure.ai.model.Lemma;
|
|
|
import com.lantone.qc.kernel.structure.ai.model.Relation;
|
|
|
+import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
import com.lantone.qc.pub.model.label.PresentLabel;
|
|
@@ -63,8 +65,21 @@ public class BEH03059 extends QCCatalogue {
|
|
|
presentPairs = new Object[] { presentLemmas, presentRelations };
|
|
|
|
|
|
List<Object[]> positionPairs = finder.findConflictPositions(checkPairs, presentPairs);
|
|
|
- if (positionPairs.size() > 0){
|
|
|
+ if (positionPairs.size() > 0) {
|
|
|
status.set("-1");
|
|
|
+ String infoStr = "";
|
|
|
+ for (int i = 0; i < positionPairs.size(); i++) {
|
|
|
+ if (i % 2 != 0) {
|
|
|
+ String words = "";
|
|
|
+ Object[] entityBlocks = positionPairs.get(i);
|
|
|
+ for (Object o : entityBlocks) {
|
|
|
+ EntityBlock entityBlock = (EntityBlock) o;
|
|
|
+ words += entityBlock.getSearchWord() + "->";
|
|
|
+ }
|
|
|
+ infoStr = CatalogueUtil.concatInfo(infoStr, words.substring(0, words.length() - 2));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ info.set(infoStr);
|
|
|
}
|
|
|
}
|
|
|
|