1d39b5f92b2350460a727f915a4b6f2410d11160,anago/data/preprocess.py,WordPreprocessor,fit,#WordPreprocessor#,201

Before Change


        chars = {}
        tags  = {}

        for w in set(itertools.chain(*X)):
            w = self._lower(w)
            w = self._normalize_num(w)
            if w not in words:
                words[w] = len(words)

After Change


        chars = {UNK: 0}
        tags  = {}

        for w in set(itertools.chain(*X)) | set(self.vocab_init):
            w = self._lower(w)
            w = self._normalize_num(w)
            if w not in words:
                words[w] = len(words)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Hironsan/anago
Commit Name: 1d39b5f92b2350460a727f915a4b6f2410d11160
Time: 2017-08-03
Author: light.tree.1.13@gmail.com
File Name: anago/data/preprocess.py
Class Name: WordPreprocessor
Method Name: fit


Project Name: Hironsan/anago
Commit Name: ae37404bb56813d24faf39d8fef670cb77019b2c
Time: 2017-08-06
Author: light.tree.1.13@gmail.com
File Name: anago/data/preprocess.py
Class Name: WordPreprocessor
Method Name: fit


Project Name: deepmind/sonnet
Commit Name: a27371fc0adda5eb53ff5a29bf83d963f7e52096
Time: 2017-09-25
Author: noreply@google.com
File Name: sonnet/python/modules/gated_rnn_test.py
Class Name:
Method Name: _get_lstm_variable_names