浏览代码

修改关系抽取模型入参代码

hujing 5 年之前
父节点
当前提交
93f287df51
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common-push/src/main/java/org/diagbot/common/push/work/RelationExtractionUtil.java

+ 1 - 1
common-push/src/main/java/org/diagbot/common/push/work/RelationExtractionUtil.java

@@ -30,7 +30,7 @@ public class RelationExtractionUtil {
             LexemePath<Lexeme> pacsLexemes = ParticipleUtil.participlePacs(pacsSplit);
             for (int i = 0; i < pacsLexemes.size(); i++) {
                 //跳过非医学词
-                if (Constants.word_property_other.contains(pacsLexemes.get(i).getProperty())) {
+                if (Constants.word_property_other.equals(pacsLexemes.get(i).getProperty())) {
                     continue;
                 }
                 lemma = new Lemma();