public LinkedChainWords(LinkedChain parent) { Parent = parent; base.Words.AddRange(parent.Master.Words); base.Words.AddRange(parent.Dependent.Words); }
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; }
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; }
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; }