Skip to content

Commit 71614f8

Browse files
committed
-Added conditional to put default annotators in properties if value is nil
1 parent 5ae3558 commit 71614f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/clojurenlp/core.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
(let [props (Properties.)
141141
stringified-map (walk/stringify-keys properties-map)]
142142
(if (nil? (:annotators properties-map))
143-
(.putAll props (assoc stringified-map "annotators" "tokenize, ssplit, pos, lemma, ner,pffft"))
143+
(.putAll props (assoc stringified-map "annotators" "tokenize, ssplit, pos, lemma, ner"))
144144
(.putAll props stringified-map))
145145
(StanfordCoreNLP. props true))))
146146

0 commit comments

Comments
 (0)