public class EncoderFeatureIndex extends FeatureIndex
alpha_, alphaFloat_, bigramTempls_, BOS, checkMaxXsize_, costFactor_, EOS, max_xsize_, maxid_, nodeList_, pathList_, templs_, threadNum_, unigramTempls_, xsize_, y_| Constructor and Description |
|---|
EncoderFeatureIndex(int n) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
convert(String textmodel,
String binarymodel) |
int |
getID(String key) |
static void |
main(String[] args) |
boolean |
open(String filename1,
String filename2) |
boolean |
save(String filename,
boolean textModelFile) |
void |
shrink(int freq,
List<TaggerImpl> taggers) |
applyRule, buildFeatures, calcCost, calcCost, getAlpha_, getAlphaFloat_, getBigramTempls_, getCostFactor_, getIndex, getMax_xsize_, getMaxid_, getNodeList_, getPathList_, getTemplate, getThreadNum_, getUnigramTempls_, getXsize_, getY_, makeTempls, open, open, rebuildFeatures, setAlpha_, setAlphaFloat_, setBigramTempls_, setCostFactor_, setMax_xsize_, setMaxid_, setNodeList_, setPathList_, setThreadNum_, setUnigramTempls_, setXsize_, setY_, size, ysizepublic int getID(String key)
getID in class FeatureIndexpublic boolean save(String filename, boolean textModelFile)
public void clear()
clear in class FeatureIndexpublic void shrink(int freq,
List<TaggerImpl> taggers)
public static void main(String[] args)
Copyright © 2014–2021 码农场. All rights reserved.