742af24731e30f5abdfa7fbe736537293a434abf,hazm/POSTagger.py,POSTagger,tag_sents,#POSTagger#Any#,16
Before Change
[("من", "PR"), ("به", "PREP"), ("مدرسه", "N"), ("رفته بودم", "V"), (".", "PUNC")]
_sentences = [[item.replace(" ", "_") for item in sentence] for sentence in sentences]
results = super(stanford.POSTagger, self).tag_sents(_sentences)
return [[(word, tag[1].split("/")[-1]) for word, tag in zip(sentence, result)] for sentence, result in zip(sentences, results)]
After Change
replace_spaces = lambda sentence: [word.replace(" ", "_") for word in sentence]
return super(stanford.POSTagger, self).tag_sents(map(replace_spaces, sentences))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: sobhe/hazm
Commit Name: 742af24731e30f5abdfa7fbe736537293a434abf
Time: 2014-08-21
Author: az.nourian@gmail.com
File Name: hazm/POSTagger.py
Class Name: POSTagger
Method Name: tag_sents
Project Name: sobhe/hazm
Commit Name: 4233fe8c0721a1b2749279bfd0300b2784f9ece8
Time: 2014-08-26
Author: az.nourian@gmail.com
File Name: hazm/POSTagger.py
Class Name: POSTagger
Method Name: tag_sents
Project Name: sobhe/hazm
Commit Name: 95fab0936681aa6bd1f0417bc8fa875d9fa0cc48
Time: 2014-09-27
Author: az.nourian@gmail.com
File Name: hazm/POSTagger.py
Class Name: POSTagger
Method Name: tag_sents