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

opennlp.tools.formats.convert

## Class NameToSentenceSampleStreamFactory

- java.lang.Object
- - opennlp.tools.formats.AbstractSampleStreamFactory<T>
  - - opennlp.tools.formats.DetokenizerSampleStreamFactory<SentenceSample>
    - - opennlp.tools.formats.convert.NameToSentenceSampleStreamFactory

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

      public class NameToSentenceSampleStreamFactory
      extends DetokenizerSampleStreamFactory<SentenceSample>

  Note: Do not use this class, internal use only!

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ObjectStream<SentenceSample>` | `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<SentenceSample> 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.