Exemple #1
0
            public Dictionarizer(Task previ, ConcurrentQueue <string> msgs)
            {
                prev             = previ;
                inMessageStrings = msgs;

                outSentenceBank = new SentenceBank();

                workingMasterWordCloud  = new ConcurrentDictionary <string, int>();
                workingMasterDictionary = new ConcurrentQueue <string>();
            }
Exemple #2
0
            public Markovizer(int gram_s, Task previ, SentenceBank inbank)
            {
                gram_size = gram_s;

                prev           = previ;
                inSentenceBank = inbank;

                workingNGrams     = new ConcurrentQueue <NGram>();
                workingNGramCloud = new ConcurrentDictionary <NGram, int>();
                workingSuccessors = new ConcurrentDictionary <int, ConcurrentDictionary <int, int> >();
                workingSeeds      = new ConcurrentDictionary <int, bool>();
            }