public class ChunkSampleStream extends FilterObjectStream<String,ChunkSample>
Data format is specified on the conll page:
http://www.cnts.ua.ac.be/conll2000/chunking/
Constructor and Description |
---|
ChunkSampleStream(ObjectStream<String> samples)
Initializes the current instance.
|
Modifier and Type | Method and Description |
---|---|
ChunkSample |
read()
Returns the next object.
|
close, reset
public ChunkSampleStream(ObjectStream<String> samples)
samples
- a plain text line streampublic ChunkSample read() throws IOException
ObjectStream
IOException
- if there is an error during readingCopyright © 2021 The Apache Software Foundation. All rights reserved.