コード例 #1
0
ファイル: Ingesting.cs プロジェクト: chaquator/MarkovChain
            public Dictionarizer(Task previ, ConcurrentQueue <string> msgs)
            {
                prev             = previ;
                inMessageStrings = msgs;

                outSentenceBank = new SentenceBank();

                workingMasterWordCloud  = new ConcurrentDictionary <string, int>();
                workingMasterDictionary = new ConcurrentQueue <string>();
            }
コード例 #2
0
ファイル: Ingesting.cs プロジェクト: chaquator/MarkovChain
            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>();
            }