Class NameSampleDataStream

java.lang.Object
opennlp.tools.util.FilterObjectStream<String, opennlp.tools.namefind.NameSample>
opennlp.tools.namefind.NameSampleDataStream
All Implemented Interfaces:
AutoCloseable, opennlp.tools.util.ObjectStream<opennlp.tools.namefind.NameSample>

public class NameSampleDataStream extends FilterObjectStream<String, opennlp.tools.namefind.NameSample>
The NameSampleDataStream class converts tagged tokens provided by a DataStream to NameSample objects.

It uses text that is one-sentence per line and tokenized with names identified by:
<START> and <END>tags.

  • Constructor Details

    • NameSampleDataStream

      public NameSampleDataStream(opennlp.tools.util.ObjectStream<String> in)
      Initializes a NameSampleDataStream with given psi samples.
      Parameters:
      in - The stream of data samples.
  • Method Details