0cdbd836f44e9351e769b2504d82680af838927f,pliers/extractors/text.py,WordCounterExtractor,_extract,#WordCounterExtractor#Any#,419

Before Change


            
        word_counter = pd.Series(tokens).value_counts()
        
        return ExtractorResult(list(word_counter), stim,
                               self, features=list(word_counter.index)) //still in progress

After Change


        for i, count in enumerate(word_counter):
            results.append(ExtractorResult([count], stims[i], self,
                                features=["word_counter"]))
        return results
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: tyarkoni/pliers
Commit Name: 0cdbd836f44e9351e769b2504d82680af838927f
Time: 2020-01-19
Author: rbrrcc@gmail.com
File Name: pliers/extractors/text.py
Class Name: WordCounterExtractor
Method Name: _extract


Project Name: tyarkoni/pliers
Commit Name: 0a37dea8cd7bc8d533ee971cb6fc5ec59537f4b7
Time: 2017-10-22
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/text.py
Class Name: PartOfSpeechExtractor
Method Name: _extract


Project Name: tyarkoni/pliers
Commit Name: 193b8299d3dba296703f92aba12d170f90ea459f
Time: 2020-02-04
Author: rbrrcc@gmail.com
File Name: pliers/extractors/text.py
Class Name: PretrainedBertEncodingExtractor
Method Name: _extract


Project Name: tyarkoni/pliers
Commit Name: 29f827ab28be71a852334a93eff42dc45aee6646
Time: 2018-01-09
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/microsoft.py
Class Name: MicrosoftAPIFaceExtractor
Method Name: _extract