예제 #1
0
        public DecisionTree(string fileName, out List <Entry> testData)
        {
            List <Entry>  entryList = FileToListConverter.FileToList(fileName, out testData);
            List <string> usedWords = new List <string>();

            Tree = new Node(entryList, 0, entryList.Count(), usedWords);
        }
예제 #2
0
 public SpamHamEnum ValidateSentence(string sentence)
 {
     return(ValidateSentence(FileToListConverter.SentenceToEntry(sentence)));
 }