public void PutEntityWordPerperty(string Word) { if (String.IsNullOrEmpty(Word)) { return; } FirstWordPosFactorItem.AddTraining(Word); WordLengtFactorItem.AddTraining(Word); WordCountFactorItem.AddTraining(Word); LastWordFactorItem.AddTraining(Word); }
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; } }