You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by ra...@apache.org on 2017/02/15 09:15:04 UTC
opennlp git commit: OPENNLP-904 add minor correction after PR comment
Repository: opennlp
Updated Branches:
refs/heads/904 6b19d379d -> 92c8eaa62
OPENNLP-904 add minor correction after PR comment
Project: http://git-wip-us.apache.org/repos/asf/opennlp/repo
Commit: http://git-wip-us.apache.org/repos/asf/opennlp/commit/92c8eaa6
Tree: http://git-wip-us.apache.org/repos/asf/opennlp/tree/92c8eaa6
Diff: http://git-wip-us.apache.org/repos/asf/opennlp/diff/92c8eaa6
Branch: refs/heads/904
Commit: 92c8eaa62589517714a1e611d5a9d0395a9faa04
Parents: 6b19d37
Author: Rodrigo Agerri <ra...@apache.org>
Authored: Wed Feb 15 10:14:49 2017 +0100
Committer: Rodrigo Agerri <ra...@apache.org>
Committed: Wed Feb 15 10:14:49 2017 +0100
----------------------------------------------------------------------
.../main/java/opennlp/tools/lemmatizer/DictionaryLemmatizer.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/opennlp/blob/92c8eaa6/opennlp-tools/src/main/java/opennlp/tools/lemmatizer/DictionaryLemmatizer.java
----------------------------------------------------------------------
diff --git a/opennlp-tools/src/main/java/opennlp/tools/lemmatizer/DictionaryLemmatizer.java b/opennlp-tools/src/main/java/opennlp/tools/lemmatizer/DictionaryLemmatizer.java
index 32f98d0..f54ea9a 100644
--- a/opennlp-tools/src/main/java/opennlp/tools/lemmatizer/DictionaryLemmatizer.java
+++ b/opennlp-tools/src/main/java/opennlp/tools/lemmatizer/DictionaryLemmatizer.java
@@ -137,9 +137,7 @@ public class DictionaryLemmatizer implements Lemmatizer {
// lookup lemma as value of the map
final List<String> keyValues = this.dictMap.get(keys);
if (!keyValues.isEmpty()) {
- for (String keyValue : keyValues) {
- lemmasList.add(keyValue);
- }
+ lemmasList.addAll(keyValues);
} else {
lemmasList.add("O");
}