Esempio n. 1
0
        public SequencePair ExtractFeatures(SentencePair sentence)
        {
            SequencePair sPair = new SequencePair();

            sPair.autoEncoder = AutoEncoder;
            sPair.srcSentence = sentence.srcSentence;
            sPair.tgtSequence = ExtractFeatures(sentence.tgtSentence);

            return(sPair);
        }
Esempio n. 2
0
        public SequencePair BuildSequence(SentencePair sentence)
        {
            var sPair = new SequencePair
            {
                autoEncoder = Seq2SeqAutoEncoder,
                srcSentence = sentence.srcSentence,
                tgtSequence = BuildSequence(sentence.tgtSentence)
            };

            return(sPair);
        }