Exemple #1
0
        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())));
 }
Exemple #3
0
 public HomeController()
 {
     _nGramHelper = new NGramHelper();
 }