| commit | 6ec901287620f172373d1d7cf46ab106d440ae0c | [log] [tgz] |
|---|---|---|
| author | Rupert Westenthaler <rwesten@apache.org> | Tue Feb 23 10:09:22 2016 +0000 |
| committer | Rupert Westenthaler <rwesten@apache.org> | Tue Feb 23 10:09:22 2016 +0000 |
| tree | 99ce05a0e90fc89d95bfec725487eb7816ac53ad | |
| parent | 6028df3cd9284fdcfeb681574e3767594d756887 [diff] |
STANBOL-1448: another fix releated to TaggingSession initialization git-svn-id: https://svn.apache.org/repos/asf/stanbol/branches/release-0.12@1731827 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/enhancement-engines/lucenefstlinking/src/main/java/org/apache/stanbol/enhancer/engines/lucenefstlinking/TaggingSession.java b/enhancement-engines/lucenefstlinking/src/main/java/org/apache/stanbol/enhancer/engines/lucenefstlinking/TaggingSession.java index 1c8acca..8b3fa21 100644 --- a/enhancement-engines/lucenefstlinking/src/main/java/org/apache/stanbol/enhancer/engines/lucenefstlinking/TaggingSession.java +++ b/enhancement-engines/lucenefstlinking/src/main/java/org/apache/stanbol/enhancer/engines/lucenefstlinking/TaggingSession.java
@@ -183,14 +183,6 @@ this.defaultLabelField = null; this.defaultLabelLang = null; } - if(this.defaultCorpus == null && this.langCorpus == null){ - throw new CorpusException("Unable to initialise a FST corpus for language '" - + language+"'. Neigher the language specific Coprpus (field : " - + langCorpusInfo != null ? langCorpusInfo.indexedField : "<undefined>" - + ") nor for the default language (field: " - + defaultCorpusInfo != null ? defaultCorpusInfo.indexedField : "<undefined>" - + ") is currently available!",null); - } if(config.getEncodedTypeField() != null){ this.typeField = config.getEncodedTypeField(); solrDocfields.add(typeField);