|
@@ -76,6 +76,9 @@ public class FeatureController extends BaseController<Feature, FeatureWrapper, L
|
|
|
String[] conceptIds = null;
|
|
|
List<Map<String, String>> featureList = new ArrayList<>();
|
|
|
for (Lexeme lexeme : lexemes) {
|
|
|
+ if (lexeme.getProperty() == null || lexeme.getConcept() == null) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
properties = lexeme.getProperty().split(",");
|
|
|
conceptIds = lexeme.getConcept().split(",");
|
|
|
for (int i = 0; i < properties.length; i++) {
|
|
@@ -84,6 +87,7 @@ public class FeatureController extends BaseController<Feature, FeatureWrapper, L
|
|
|
map.put("conceptId", conceptIds[i]);
|
|
|
map.put("name", lexeme.getText());
|
|
|
map.put("libType", NegativeEnum.SYMPTOM.toString());
|
|
|
+ map.put("chronicLabel", "0");
|
|
|
featureList.add(map);
|
|
|
}
|
|
|
if (NlpUtil.isFeature(properties[i], new NegativeEnum[]{NegativeEnum.DISEASE})) {
|
|
@@ -91,6 +95,7 @@ public class FeatureController extends BaseController<Feature, FeatureWrapper, L
|
|
|
map.put("conceptId", conceptIds[i]);
|
|
|
map.put("name", lexeme.getText());
|
|
|
map.put("libType", NegativeEnum.DISEASE.toString());
|
|
|
+ map.put("chronicLabel", "0");
|
|
|
|
|
|
if ("慢病".equals(classifies.get(lexeme.getText()))) {
|
|
|
for (Lexeme l : lexemes) {
|