Esempio n. 1
0
 public void PutEntityWordPerperty(string Word)
 {
     if (String.IsNullOrEmpty(Word))
     {
         return;
     }
     FirstWordPosFactorItem.AddTraining(Word);
     WordLengtFactorItem.AddTraining(Word);
     WordCountFactorItem.AddTraining(Word);
     LastWordFactorItem.AddTraining(Word);
 }
Esempio n. 2
0
 public void PutEntityWordPerperty(string Word)
 {
     if (String.IsNullOrEmpty(Word))
     {
         return;
     }
     FirstWordPosFactorItem.AddTraining(Word);
     WordLengtFactorItem.AddTraining(Word);
     WordCountFactorItem.AddTraining(Word);
     LastWordFactorItem.AddTraining(Word);
     Word = Utility.TrimEnglish(Word);
     if (Word.Length > MaxLength)
     {
         MaxLength     = Word.Length;
         MaxLengthWord = Word;
     }
     if (Word.Length < MinLength)
     {
         MinLength     = Word.Length;
         MinLengthWord = Word;
     }
 }