Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit 0d6770a

Browse files
committed
fixed latest changes in nlp
1 parent 5b1015f commit 0d6770a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/graphaware/nlp/processor/opennlp/OpenNLPTextProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ protected Map<String, Object> getPipelineProperties(OpenNLPPipeline pipeline) {
147147
return options;
148148
}
149149

150-
protected Map<String, Boolean> buildSpecifications(List<String> actives) {
150+
protected Map<String, Object> buildSpecifications(List<String> actives) {
151151
List<String> all = Arrays.asList("tokenize", "ner", "cleanxml", "truecase", "dependency", "relations", "checkLemmaIsStopWord", "coref", "sentiment", "phrase", "customSentiment", "customNER");
152-
Map<String, Boolean> specs = new HashMap<>();
152+
Map<String, Object> specs = new HashMap<>();
153153
all.forEach(s -> {
154154
specs.put(s, actives.contains(s));
155155
});

0 commit comments

Comments
 (0)