Class TokenizerStream
java.lang.Object
opennlp.tools.tokenize.TokenizerStream
- All Implemented Interfaces:
AutoCloseable, opennlp.tools.util.ObjectStream<opennlp.tools.tokenize.TokenSample>
public class TokenizerStream
extends Object
implements opennlp.tools.util.ObjectStream<opennlp.tools.tokenize.TokenSample>
-
Constructor Summary
ConstructorsConstructorDescriptionTokenizerStream(opennlp.tools.tokenize.Tokenizer tokenizer, opennlp.tools.util.ObjectStream<String> input) Initializes ainstance. -
Method Summary
-
Constructor Details
-
TokenizerStream
-
-
Method Details
-
read
- Specified by:
readin interfaceopennlp.tools.util.ObjectStream<opennlp.tools.tokenize.TokenSample>- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceopennlp.tools.util.ObjectStream<opennlp.tools.tokenize.TokenSample>- Throws:
IOException
-
reset
- Specified by:
resetin interfaceopennlp.tools.util.ObjectStream<opennlp.tools.tokenize.TokenSample>- Throws:
IOExceptionUnsupportedOperationException
-