org.cogroo.tools.chunker2
Class ChunkSampleStream
java.lang.Object
opennlp.tools.util.FilterObjectStream<String,opennlp.tools.chunker.ChunkSample>
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 |
ChunkSampleStream
public ChunkSampleStream(opennlp.tools.util.ObjectStream<String> samples)
- Initializes the current instance.
- Parameters:
samples
- a plain text line stream
read
public opennlp.tools.chunker.ChunkSample read()
throws IOException
- Throws:
IOException
Copyright © 2012-2013 CoGrOO. All Rights Reserved.