示例#1
0
        public LinkedChainWords(LinkedChain parent)
        {
            Parent = parent;

            base.Words.AddRange(parent.Master.Words);
            base.Words.AddRange(parent.Dependent.Words);
        }
示例#2
0
 private static LinkedChain jsonLinkedChainToModelChain(JsonLinkedChain chain, SentenceWord[] words)
 {
     var result = new LinkedChain();
     result.Master.Words.AddRange(chain.Master.WordIndexes.Select(i => words[i]));
     result.Dependent.Words.AddRange(chain.Dependent.WordIndexes.Select(i => words[i]));
     return result;
 }
示例#3
0
            public FromComprenoModel AddLinkedChain(Compreno.SentenceElement master, IOrderedEnumerable<Compreno.SentenceElement> dependantWords)
            {
                var linkedChain = new LinkedChain();
                linkedChain.Master.Words.Add(_toSentenceWord(master));
                linkedChain.Dependent.Words.AddRange(dependantWords.Select(_toSentenceWord));

                _comparisonSentence.LinkedChains.Add(linkedChain);

                return this;
            }
示例#4
0
            public FromIppiModel AddLinkedChain(IPPI.SentenceWord master, IOrderedEnumerable<IPPI.SentenceWord> dependantWords)
            {
                var linkedChain = new LinkedChain();
                linkedChain.Master.Words.Add(_toSentenceWord(master));
                linkedChain.Dependent.Words.AddRange(dependantWords.Select(_toSentenceWord));

                _comparisonSentence.LinkedChains.Add(linkedChain);

                return this;
            }
 public StageComparisonResultElement(LinkedChain chain)
 {
     LinkedChain = chain;
 }