Пример #1
0
 def prepare_m_words(self, page):
     tc = TextCombiner()
     snippet = tc.remove_all_parenthesis(page.snippet)
     mwf = MWordsFactory()
     m_words = mwf.build_from(snippet)
     m_words = tc.combine_nouns(m_words)
     m_words = tc.combine_verbs(m_words)
     return m_words
Пример #2
0
 def prepare_m_words(self, page):
     tc = TextCombiner()
     snippet = tc.remove_all_parenthesis(page.snippet)
     mwf = MWordsFactory()
     m_words = mwf.build_from(snippet)
     m_words = tc.combine_nouns(m_words)
     m_words = tc.combine_verbs(m_words)
     return m_words
Пример #3
0
 def set_m_body_words_by_combine_words(self):
     tc = TextCombiner()
     self.m_body_words = tc.combine_nouns(self.m_body_words)
     self.m_body_words = tc.combine_verbs(self.m_body_words)
Пример #4
0
 def _set_m_body_words_by_combine_words(self):
     tc = TextCombiner()
     m_body_words = tc.combine_nouns(self.m_body_words)
     self.m_body_words = tc.combine_verbs(m_body_words)