LanguageDetectorSampleStreamFactory (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

opennlp.tools.formats

## Class LanguageDetectorSampleStreamFactory

- java.lang.Object
- - opennlp.tools.formats.AbstractSampleStreamFactory<LanguageSample>
  - - opennlp.tools.formats.LanguageDetectorSampleStreamFactory

- All Implemented Interfaces:
    opennlp.tools.cmdline.ObjectStreamFactory<LanguageSample>

      public class LanguageDetectorSampleStreamFactory
      extends AbstractSampleStreamFactory<LanguageSample>

  Factory producing OpenNLP `DocumentSampleStream`s.

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ObjectStream<LanguageSample>` | `create(String[] args)` Creates the `ObjectStream`.
    `static void` | `registerFactory()`

    - ### Methods inherited from class opennlp.tools.formats.AbstractSampleStreamFactory

      `getLang, getParameters`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### registerFactory

          public static void registerFactory()

    - #### create

          public ObjectStream<LanguageSample> create(String[] args)

      Description copied from interface: `opennlp.tools.cmdline.ObjectStreamFactory`
      Creates the `ObjectStream`.
      Parameters:
        `args` - arguments
      Returns:
        ObjectStream instance

Copyright © 2026 The Apache Software Foundation. All rights reserved.