d4e56424203977865ea9c599ab69e8e4c500041b,sumy/algorithms/edmundson.py,EdmundsonMethod,title_method,#EdmundsonMethod#,91
Before Change
headings = self._document.headings
significant_words = chain(*map(attrgetter("words"), headings))
significant_words = map(self.stem_word, significant_words)
significant_words = ffilter(self._is_null_word, significant_words)
significant_words = frozenset(significant_words)
sentences = self._document.sentences
return self._get_best_sentences(sentences, sentences_count,
self._rate_sentence_by_title_method, significant_words)
def _is_null_word(self, word):
return word in self._null_words
After Change
summarization_method = EdmundsonTitleMethod(self._document,
self._stemmer, self._null_words)
return summarization_method(sentences_count)
def _is_null_word(self, word):
return word in self._null_words
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: miso-belica/sumy
Commit Name: d4e56424203977865ea9c599ab69e8e4c500041b
Time: 2013-03-09
Author: miso.belica@gmail.com
File Name: sumy/algorithms/edmundson.py
Class Name: EdmundsonMethod
Method Name: title_method
Project Name: librosa/librosa
Commit Name: 7ca0da3854c49f73bd2aae5592f1cf5a9f7177d4
Time: 2014-11-06
Author: brian.mcfee@nyu.edu
File Name: librosa/core.py
Class Name:
Method Name: note_to_midi
Project Name: acoular/acoular
Commit Name: 97a346493ac31f120102d4cb3cf8586333d1a1ec
Time: 2010-09-16
Author: sarradj@tu-cottbus.de
File Name: beamfpy/beamfpy.py
Class Name:
Method Name: synthetic