Class LanguageDetectorFactory

java.lang.Object
opennlp.tools.util.BaseToolFactory
opennlp.tools.langdetect.LanguageDetectorFactory
com.yahoo.language.opennlp.LanguageDetectorFactory

public class LanguageDetectorFactory extends opennlp.tools.langdetect.LanguageDetectorFactory
Overrides the UrlCharSequenceNormalizer, which has a bad regex, until fixed: https://issues.apache.org/jira/browse/OPENNLP-1350
Author:
jonmv
  • Field Summary

    Fields inherited from class opennlp.tools.util.BaseToolFactory

    artifactProvider
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    opennlp.tools.langdetect.LanguageDetectorContextGenerator
     

    Methods inherited from class opennlp.tools.langdetect.LanguageDetectorFactory

    create, init, validateArtifactMap

    Methods inherited from class opennlp.tools.util.BaseToolFactory

    create, create, createArtifactMap, createArtifactSerializersMap, createManifestEntries, init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LanguageDetectorFactory

      public LanguageDetectorFactory()
  • Method Details

    • getContextGenerator

      public opennlp.tools.langdetect.LanguageDetectorContextGenerator getContextGenerator()
      Overrides:
      getContextGenerator in class opennlp.tools.langdetect.LanguageDetectorFactory