StringPrediction p = null;
if (isTrain())
{
p = new StringPrediction(getGoldLabel(state), 1d);
s_spaces[idx].addInstance(new StringInstance(p.label, vector));
}
else if (isDevelopOrDecode())
{
p = getAutoLabel(idx, vector, state);
}
else if (isBootstrap())
{
p = getAutoLabel(idx, vector, state);
s_spaces[idx].addInstance(new StringInstance(getGoldLabel(state), vector));
}
return p;
}