public abstract class SequenceModel extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
charsetName |
protected short[] |
charToOrderMap |
protected boolean |
keepEnglishLetter |
protected byte[] |
precedenceMatrix |
protected float |
typicalPositiveRatio |
Constructor and Description |
---|
SequenceModel(short[] charToOrderMap,
byte[] precedenceMatrix,
float typicalPositiveRatio,
boolean keepEnglishLetter,
String charsetName) |
Modifier and Type | Method and Description |
---|---|
String |
getCharsetName() |
boolean |
getKeepEnglishLetter() |
short |
getOrder(byte b) |
byte |
getPrecedence(int pos) |
float |
getTypicalPositiveRatio() |
protected short[] charToOrderMap
protected byte[] precedenceMatrix
protected float typicalPositiveRatio
protected boolean keepEnglishLetter
protected String charsetName
public SequenceModel(short[] charToOrderMap, byte[] precedenceMatrix, float typicalPositiveRatio, boolean keepEnglishLetter, String charsetName)
public short getOrder(byte b)
public byte getPrecedence(int pos)
public float getTypicalPositiveRatio()
public boolean getKeepEnglishLetter()
public String getCharsetName()
Copyright © 2019. All rights reserved.