Esempio n. 1
0
 public BusinessModel(String file)
 {
     try
     {
         predictor = new WordPredictor(file);
     }
     catch (FileNotFoundException e)
     {
         Console.WriteLine("File not found" + e.Data);
     }
 }
Esempio n. 2
0
 public BusinessModel(String file)
 {
     try
     {
         predictor       = new WordPredictor(file);
         wordsInSentence = new List <string>();
         currentWordList = new List <string>();
     }
     catch (FileNotFoundException e)
     {
         Console.WriteLine("File not found" + e.Data);
     }
 }