public class WordTokenSource
extends java.lang.Object
| Constructor and Description |
|---|
WordTokenSource(Settings s,
java.io.BufferedReader bin)
Creates a WordTokenSource with some token-related settings and a source of data.
|
public WordTokenSource(Settings s, java.io.BufferedReader bin)
s - The Settings object that defines EOS split points and other token items.bin - Where to read data, as a buffered reader.public Token readToken() throws java.io.IOException
java.io.IOException - if the BufferedReader given in the constructor raises some error.