public int[] Process(Sentence sent) { var seq = Config.BuildSequence(sent); var predicted = rnn.IsCRFTraining ? rnn.DecodeCRF(seq) : rnn.DecodeNN(seq); return(predicted); }
public int[] Process(Sentence sent) { Sequence seq = Featurizer.ExtractFeatures(sent); int[] predicted; if (rnn.IsCRFTraining == true) { predicted = rnn.DecodeCRF(seq); } else { predicted = rnn.DecodeNN(seq); } return(predicted); }