public class TokenSampleStream extends FilterObjectStream<String,TokenSample>
TokenSamples out of them. The input string sample is tokenized if a
 whitespace or the special separator chars occur.
 
 Sample:
 "token1 token2 token3<SPLIT>token4"
 The tokens token1 and token2 are separated by a whitespace, token3 and token3
 are separated by the special character sequence, in this case the default
 split sequence.
 
The sequence must be unique in the input string and is not escaped.
| Constructor and Description | 
|---|
| TokenSampleStream(ObjectStream<String> sentences) | 
| TokenSampleStream(ObjectStream<String> sampleStrings,
                 String separatorChars) | 
| Modifier and Type | Method and Description | 
|---|---|
| TokenSample | read()Returns the next object. | 
close, resetpublic TokenSampleStream(ObjectStream<String> sampleStrings, String separatorChars)
public TokenSampleStream(ObjectStream<String> sentences)
public TokenSample read() throws IOException
ObjectStreamIOException - if there is an error during readingCopyright © 2017 The Apache Software Foundation. All rights reserved.