summaryrefslogtreecommitdiffstats
path: root/linguistics/src/main/java/com/yahoo/language/opennlp/LanguageDetectorFactory.java
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-11-26 00:10:17 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2022-11-26 23:55:10 +0100
commita8665da65c39d9e4a56c74c2d8e6a7bd61c7c313 (patch)
tree7ef8738fca139dfdab1464c5edfd3d7423427b9b /linguistics/src/main/java/com/yahoo/language/opennlp/LanguageDetectorFactory.java
parentb36cb57248dfc02bae9dfe7b2cca0ddd551881c6 (diff)
Split out opennlp-linguistics
Diffstat (limited to 'linguistics/src/main/java/com/yahoo/language/opennlp/LanguageDetectorFactory.java')
-rw-r--r--linguistics/src/main/java/com/yahoo/language/opennlp/LanguageDetectorFactory.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/linguistics/src/main/java/com/yahoo/language/opennlp/LanguageDetectorFactory.java b/linguistics/src/main/java/com/yahoo/language/opennlp/LanguageDetectorFactory.java
deleted file mode 100644
index 0cf4634c6c3..00000000000
--- a/linguistics/src/main/java/com/yahoo/language/opennlp/LanguageDetectorFactory.java
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.language.opennlp;
-
-import opennlp.tools.langdetect.LanguageDetectorContextGenerator;
-
-/**
- * Overrides the UrlCharSequenceNormalizer, which has a bad regex, until fixed: https://issues.apache.org/jira/browse/OPENNLP-1350
- *
- * @author jonmv
- */
-@SuppressWarnings("unused") // Loaded by black magic: specified in properties in the loaded model.
-public class LanguageDetectorFactory extends opennlp.tools.langdetect.LanguageDetectorFactory {
-
- @Override
- public LanguageDetectorContextGenerator getContextGenerator() {
- return new DefaultLanguageDetectorContextGenerator(1, 3,
- VespaCharSequenceNormalizer.getInstance());
- }
-
-}