4bc0cb5d2924a63cf06f641b7cf36f799885f33f,matchzoo/processor_units/processor_units.py,WordHashingUnit,transform,#WordHashingUnit#Any#,416

Before Change


        :return: Word hashing representation of `tri-letters`.
        
        hashing = np.zeros(len(self._term_index) + 1)
        counted_tri_letters = collections.Counter(tri_letters)
        for key, value in counted_tri_letters.items():
            idx = self._term_index.get(key, 0)
            hashing[idx] = value
        return hashing

After Change


            :class:`NgramLetterUnit`.
        :return: Word hashing representation of `tri-letters`.
        
        hashing = np.zeros((len(letters), len(self._term_index) + 1))
        for idx in range(len(letters)):
            counted_letters = collections.Counter(letters[idx])
            for key, value in counted_letters.items():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NTMC-Community/MatchZoo
Commit Name: 4bc0cb5d2924a63cf06f641b7cf36f799885f33f
Time: 2018-12-26
Author: 948280670@qq.com
File Name: matchzoo/processor_units/processor_units.py
Class Name: WordHashingUnit
Method Name: transform


Project Name: scikit-learn-contrib/DESlib
Commit Name: 61aff20b59879b64ad562c2faa5f85ad0ee75592
Time: 2018-01-13
Author: rafaelmenelau@gmail.com
File Name: pythonds/base.py
Class Name: DS
Method Name: _hardness_region_competence


Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: 1070ee6fe00f2a3b03273e6a6dbf5625ab4dffc7
Time: 2019-03-12
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/preprocess/_tmpreproc.py
Class Name: TMPreproc
Method Name: vocabulary_abs_doc_frequency