Exemple #1
0
        public NgramCollectionTest()
        {
            collection = new NgramCollection();

            collection.Add(new Ngram(new string[] {
            "test", "love"
            }, 10));
            collection.Add(new Ngram(new string[] {
            "raw", "world"
            }, 15));
            collection.Add(new Ngram(new string[] {
            "new", "order"
            }, 5));
        }
Exemple #2
0
 internal void AddNgramCollection(NgramType type, NgramCollection collection)
 {
     ngrams.Add(type, collection);
 }