示例#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);
             }
         }
     }
 }
示例#2
0
 public bool Contains(Phrase s)
 {
     return Contains(s.WordsInPhrase);
 }