Esempio n. 1
0
        private char c_t;                //t或#标识符

        public WordChainProcessor(WordChain words, char wc, char h, char t)
        {
            //初始化字段
            rawWordList = words.GetWordChain();
            maxWordList = new List <Word>();
            if (wc == 'w')
            {
                b_wc = true;
            }
            else
            {
                b_wc = false;
            }
            c_h = h;
            c_t = t;
        }
Esempio n. 2
0
 public void copyChain(WordChain wchain)
 {
     this.weight    = wchain.weight;
     this.wordChain = new List <Word>(wchain.GetWordChain().ToArray());
 }