Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public SpamHamEnum ValidateSentence(string sentence)
 {
     return(ValidateSentence(FileToListConverter.SentenceToEntry(sentence)));
 }