diff --git a/germanner/src/main/java/de/tu/darmstadt/lt/ner/feature/extractor/TopicClass1FeatureExtractor.java b/germanner/src/main/java/de/tu/darmstadt/lt/ner/feature/extractor/TopicClass1FeatureExtractor.java index aa68396..3eef6aa 100644 --- a/germanner/src/main/java/de/tu/darmstadt/lt/ner/feature/extractor/TopicClass1FeatureExtractor.java +++ b/germanner/src/main/java/de/tu/darmstadt/lt/ner/feature/extractor/TopicClass1FeatureExtractor.java @@ -83,20 +83,20 @@ public List apply(Feature feature) Object featureValue = feature.getValue(); if (featureValue == null) { - return Collections.singletonList(new Feature("TopicClass1", "NA")); + return Collections.singletonList(new Feature("TopicClass", "NA")); } String value = featureValue.toString(); if (value == null || value.length() == 0) { - return Collections.singletonList(new Feature("TopicClass1", "NA")); + return Collections.singletonList(new Feature("TopicClass", "NA")); } String output; output = topicClass1.get(value); // System.out.println("Size:"+i); if (output != null) { - return Collections.singletonList(new Feature("TopicClass1", output)); + return Collections.singletonList(new Feature("TopicClass", output)); } - return Collections.singletonList(new Feature("TopicClass1", "NA")); + return Collections.singletonList(new Feature("TopicClass", "NA")); } diff --git a/germanner/src/main/java/de/tu/darmstadt/lt/ner/feature/extractor/TopicClass2FeatureExtractor.java b/germanner/src/main/java/de/tu/darmstadt/lt/ner/feature/extractor/TopicClass2FeatureExtractor.java index 9ee6010..0fdac3e 100644 --- a/germanner/src/main/java/de/tu/darmstadt/lt/ner/feature/extractor/TopicClass2FeatureExtractor.java +++ b/germanner/src/main/java/de/tu/darmstadt/lt/ner/feature/extractor/TopicClass2FeatureExtractor.java @@ -83,20 +83,20 @@ public List apply(Feature feature) Object featureValue = feature.getValue(); if (featureValue == null) { - return Collections.singletonList(new Feature("TopicClass2", "NA")); + return Collections.singletonList(new Feature("TopicClass", "NA")); } String value = featureValue.toString(); if (value == null || value.length() == 0) { - return Collections.singletonList(new Feature("TopicClass2", "NA")); + return Collections.singletonList(new Feature("TopicClass", "NA")); } String output; output = topicClass2.get(value); // System.out.println("Size:"+i); if (output != null) { - return Collections.singletonList(new Feature("TopicClass2", output)); + return Collections.singletonList(new Feature("TopicClass", output)); } - return Collections.singletonList(new Feature("TopicClass2", "NA")); + return Collections.singletonList(new Feature("TopicClass", "NA")); } diff --git a/germanner/src/main/java/de/tu/darmstadt/lt/ner/feature/extractor/TopicClass3FeatureExtractor.java b/germanner/src/main/java/de/tu/darmstadt/lt/ner/feature/extractor/TopicClass3FeatureExtractor.java index 9317966..2208819 100644 --- a/germanner/src/main/java/de/tu/darmstadt/lt/ner/feature/extractor/TopicClass3FeatureExtractor.java +++ b/germanner/src/main/java/de/tu/darmstadt/lt/ner/feature/extractor/TopicClass3FeatureExtractor.java @@ -83,20 +83,20 @@ public List apply(Feature feature) Object featureValue = feature.getValue(); if (featureValue == null) { - return Collections.singletonList(new Feature("TopicClass3", "NA")); + return Collections.singletonList(new Feature("TopicClass", "NA")); } String value = featureValue.toString(); if (value == null || value.length() == 0) { - return Collections.singletonList(new Feature("TopicClass3", "NA")); + return Collections.singletonList(new Feature("TopicClass", "NA")); } String output; output = topicClass3.get(value); // System.out.println("Size:"+i); if (output != null) { - return Collections.singletonList(new Feature("TopicClass3", output)); + return Collections.singletonList(new Feature("TopicClass", output)); } - return Collections.singletonList(new Feature("TopicClass3", "NA")); + return Collections.singletonList(new Feature("TopicClass", "NA")); }