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