s_model.setWeights(prevWeights);
}
protected AbstractState process(DEPTree tree, byte flag, List<StringInstance> insts)
{
TagState state = init(tree, flag);
while (!state.isTerminate())
{
switch (flag)
{
case FLAG_COLLECT : processCollect(state); break;
case FLAG_TRAIN : processTrain(state, insts); break;
case FLAG_BOOTSTRAP: processBootstrap(state, insts); break;
default : processDecode(state);
}
state.moveForward();
}
return state;
}