public abstract class JapaneseContextAnalysis
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
JapaneseContextAnalysis.Order |
Modifier and Type | Field and Description |
---|---|
static float |
DONT_KNOW |
static int |
ENOUGH_REL_THRESHOLD |
protected static byte[][] |
jp2CharContext |
static int |
MAX_REL_THRESHOLD |
static int |
MINIMUM_DATA_THRESHOLD |
static int |
NUM_OF_CATEGORY |
Constructor and Description |
---|
JapaneseContextAnalysis() |
Modifier and Type | Method and Description |
---|---|
float |
getConfidence() |
protected abstract int |
getOrder(byte[] buf,
int offset) |
protected abstract void |
getOrder(JapaneseContextAnalysis.Order order,
byte[] buf,
int offset) |
boolean |
gotEnoughData() |
void |
handleData(byte[] buf,
int offset,
int length) |
void |
handleOneChar(byte[] buf,
int offset,
int charLength) |
void |
reset() |
void |
setOption() |
public static final int NUM_OF_CATEGORY
public static final int ENOUGH_REL_THRESHOLD
public static final int MAX_REL_THRESHOLD
public static final int MINIMUM_DATA_THRESHOLD
public static final float DONT_KNOW
protected static final byte[][] jp2CharContext
public void handleData(byte[] buf, int offset, int length)
public void handleOneChar(byte[] buf, int offset, int charLength)
public float getConfidence()
public void reset()
public void setOption()
public boolean gotEnoughData()
protected abstract void getOrder(JapaneseContextAnalysis.Order order, byte[] buf, int offset)
protected abstract int getOrder(byte[] buf, int offset)
Copyright © 2023. All rights reserved