org.cogroo.tools.chunker2
Class ChunkSampleStream

java.lang.Object
  extended by opennlp.tools.util.FilterObjectStream<String,opennlp.tools.chunker.ChunkSample>
      extended by org.cogroo.tools.chunker2.ChunkSampleStream
All Implemented Interfaces:
opennlp.tools.util.ObjectStream<opennlp.tools.chunker.ChunkSample>

public class ChunkSampleStream
extends opennlp.tools.util.FilterObjectStream<String,opennlp.tools.chunker.ChunkSample>

Parses the conll 2000 shared task shallow parser training data.

Data format is specified on the conll page:
http://www.cnts.ua.ac.be/conll2000/chunking/


Constructor Summary
ChunkSampleStream(opennlp.tools.util.ObjectStream<String> samples)
          Initializes the current instance.
 
Method Summary
 opennlp.tools.chunker.ChunkSample read()
           
 
Methods inherited from class opennlp.tools.util.FilterObjectStream
close, reset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkSampleStream

public ChunkSampleStream(opennlp.tools.util.ObjectStream<String> samples)
Initializes the current instance.

Parameters:
samples - a plain text line stream
Method Detail

read

public opennlp.tools.chunker.ChunkSample read()
                                       throws IOException
Throws:
IOException


Copyright © 2012-2013 CoGrOO. All Rights Reserved.