Beispiel #1
0
 public void qwe()
 {
     var sq = new Phrase("грипп орви", Program.DefaultMyStemmer);
     var ql = Program.DefaultQuestionList;
     using (var writer = new StreamWriter("texts.txt"))
     {
         foreach (var text in ql.GetAllQuestions().Select(q => q.WholeText))
         {
             var q = new PhrasesSearch(text);
             if (q.Contains(sq))
             {
                 writer.WriteLine(text);
             }
         }
     }
 }
Beispiel #2
0
 public bool Contains(Phrase s)
 {
     return Contains(s.WordsInPhrase);
 }