public WordSegment(double SmoothingParameter)
      {
         m_dictCore = new WordDictionary();
         m_dictBigram = new WordDictionary();
         m_POSTagger = new Span();
         m_uPerson = new UnknowWord();
         m_uTransPerson = new UnknowWord();
         m_uPlace = new UnknowWord();
         m_Seg = new Segment(m_dictBigram, m_dictCore);
         m_Seg.OnSegmentEvent += new SegmentEventHandler(this.OnSegmentEventHandler);

         m_dSmoothingPara = SmoothingParameter;//Smoothing parameter
      }
Esempio n. 2
0
        public WordSegment(double SmoothingParameter)
        {
            m_dictCore            = new WordDictionary();
            m_dictBigram          = new WordDictionary();
            m_POSTagger           = new Span();
            m_uPerson             = new UnknowWord();
            m_uTransPerson        = new UnknowWord();
            m_uPlace              = new UnknowWord();
            m_Seg                 = new Segment(m_dictBigram, m_dictCore);
            m_Seg.OnSegmentEvent += new SegmentEventHandler(this.OnSegmentEventHandler);

            m_dSmoothingPara = SmoothingParameter;//Smoothing parameter
        }