public class WordTagSampleStream extends FilterObjectStream<String,POSSample>
|Constructor and Description|
Initializes the current instance.
|Modifier and Type||Method and Description|
Parses the next sentence and return the next
public WordTagSampleStream(ObjectStream<String> sentences)
sentences- the sentences
public POSSample read() throws IOException
POSSampleobject. If an error occurs an empty
POSSampleobject is returned and an warning message is logged. Usually it does not matter if one of many sentences is ignored. TODO: An exception in error case should be thrown.
IOException- if there is an error during reading
Copyright © 2017 The Apache Software Foundation. All rights reserved.