}
/** Called by {@link AbstractPOSTagger#tag()}. */
private String getLabel(List<StringInstance> insts, POSState state)
{
StringFeatureVector vector = getFeatureVector(f_xmls[0], state);
String label = null;
if (isTrain())
{
label = state.getGoldLabel();
if (vector.size() > 0) insts.add(new StringInstance(label, vector));
}
else if (isDevelopOrDecode())
{
label = getAutoLabel(vector, state);
}
else if (isBootstrap())
{
label = getAutoLabel(vector, state);
if (vector.size() > 0) insts.add(new StringInstance(state.getGoldLabel(), vector));
}
return label;
}