ce336c808563351bb23f87ec049c3cb7d58d774c,pliers/filters/text.py,PunctuationRemovalFilter,_filter,#PunctuationRemovalFilter#Any#,142

Before Change



    def _filter(self, stim):
        text = stim.text
        for c in string.punctuation:
            text = text.replace(c, "")
        return TextStim(stim.filename, text)


class LowerCasingFilter(TextFilter):

After Change



    def _filter(self, stim):
        pattern = "[%s]" % re.escape(string.punctuation)
        text = re.sub(pattern, "", stim.text)
        return TextStim(stim.filename, text)


class LowerCasingFilter(TextFilter):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tyarkoni/pliers
Commit Name: ce336c808563351bb23f87ec049c3cb7d58d774c
Time: 2018-06-05
Author: quinten.mcnamara@gmail.com
File Name: pliers/filters/text.py
Class Name: PunctuationRemovalFilter
Method Name: _filter


Project Name: dmlc/gluon-nlp
Commit Name: 8880acf0899efee237251cbd01c7ff81fc535789
Time: 2018-06-22
Author: szhengac@users.noreply.github.com
File Name: scripts/nmt/bleu.py
Class Name:
Method Name: _split_compound_word


Project Name: nltk/nltk
Commit Name: 5e233859c5fef3c6c5059fe0f8e201b9f67b4e67
Time: 2019-05-07
Author: alvations@gmail.com
File Name: nltk/corpus/reader/wordnet.py
Class Name: WordNetCorpusReader
Method Name: _synset_from_pos_and_line