ソースを参照

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

hujing 5 年 前
コミット
93f287df51

+ 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();