Esempio n. 1
0
        public int[] Process(Sentence sent)
        {
            var seq       = Config.BuildSequence(sent);
            var predicted = rnn.IsCRFTraining ? rnn.DecodeCRF(seq) : rnn.DecodeNN(seq);

            return(predicted);
        }
Esempio n. 2
0
        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);
        }