public class NameToTokenSampleStream extends FilterObjectStream<NameSample,TokenSample>
Constructor and Description |
---|
NameToTokenSampleStream(Detokenizer detokenizer,
ObjectStream<NameSample> samples) |
Modifier and Type | Method and Description |
---|---|
TokenSample |
read()
Returns the next object.
|
close, reset
public NameToTokenSampleStream(Detokenizer detokenizer, ObjectStream<NameSample> samples)
public TokenSample read() throws IOException
ObjectStream
IOException
- if there is an error during readingCopyright © 2018 The Apache Software Foundation. All rights reserved.