modnlp.idx.inverted.jpsegmenter
public class TinySegmenter extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TinySegmenter.CharInfo |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BUFFER_SIZE |
static int |
DEFAULT_MAX_TOKEN_SIZE |
Constructor and Description |
---|
TinySegmenter(CodePointReader reader) |
TinySegmenter(CodePointReader reader,
int bufferSize,
int maxTokenSize)
???????
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
Token |
next() |
TinySegmenter.CharInfo |
readChar() |
public static final int DEFAULT_BUFFER_SIZE
public static final int DEFAULT_MAX_TOKEN_SIZE
public TinySegmenter(CodePointReader reader)
public TinySegmenter(CodePointReader reader, int bufferSize, int maxTokenSize)
reader
- CodePointReader???????bufferSize
- ?????????7????????????maxTokenSize
- ???????????2????????????public TinySegmenter.CharInfo readChar() throws java.io.IOException
java.io.IOException
public Token next() throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)