public INGrams <T> UpdateSentenceTextBox() { var chain = RetrieveChain(); this.sentenceTextBox.Text = NGramHelper.ShowNGram(chain); return(HomogenousNGrams <T> .DirectBuiltUnsafe(chain, chain.First().N)); }
private void AddItemsToListBoxFromGenetic(IReadOnlyList <GeneticAlgorithm <NGram <Chord>[]> .Individual> readOnlyList) { this.songListBox.Invoke((Action)(() => this.songListBox.Items.AddRange(readOnlyList.Select(x => (object)(new GeneticIndividualUIElement <NGram <Chord>[]>(x.Value, NGramHelper.ShowNGram(x.Value)))).ToArray()))); }
public HomeController() { _nGramHelper = new NGramHelper(); }