String pos = state.getLeftPos();
int lpos = postagAlphabet.lookupIndex(pos);
if(lpos==-1)
throw new UnsupportedDataTypeException("不支持词性:"+pos);
LabelAlphabet actionList = factory.buildLabelAlphabet(pos);
Predict<Integer> ret = models[lpos].classify(inst, actionList.size());
Object[] guess = ret.labels;
float[][] result = new float[2][actionList.size()];
float total = 0;
for (int i = 0; i < guess.length; i++) {
if(guess[i]==null) //bug:可能为空,待修改。 xpqiu
break;
String action = actionList.lookupString((Integer)guess[i]);
result[0][i] = 0;
if (action.matches("L"))
result[0][i] = 1;
else if (action.matches("R"))
result[0][i] = 2;