Class Conll03NameSampleStream

java.lang.Object
opennlp.tools.formats.Conll03NameSampleStream
All Implemented Interfaces:
AutoCloseable, opennlp.tools.util.ObjectStream<opennlp.tools.namefind.NameSample>

public class Conll03NameSampleStream extends Object implements opennlp.tools.util.ObjectStream<opennlp.tools.namefind.NameSample>
An import stream which can parse the CONLL03 data.
  • Constructor Details

    • Conll03NameSampleStream

      public Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang, opennlp.tools.util.ObjectStream<String> lineStream, int types)
      Parameters:
      lang - The language of the CONLL 03 data.
      lineStream - An opennlp.tools.util.ObjectStream<String> over the lines in the CONLL 03 data file.
      types - The entity types to include in the Name Sample object stream.
    • Conll03NameSampleStream

      public Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang, opennlp.tools.util.InputStreamFactory in, int types) throws IOException
      Parameters:
      lang - The language of the CONLL 03 data.
      in - The InputStreamFactory for the input file.
      types - The entity types to include in the Name Sample object stream.
      Throws:
      IOException - Thrown if IO errors occurred.
  • Method Details