99d0fb1a8a00c80c97271b2cc58d52c4fcff0032,jieba/__init__.py,Tokenizer,load_userdict,#Tokenizer#,347

Before Change


                line = ln.strip().decode("utf-8").lstrip("\ufeff")
                if not line:
                    continue
                tup = line.split(" ")
                freq, tag = None, None
                if len(tup) == 2:
                    if tup[1].isdigit():
                        freq = tup[1]

After Change


            if freq is not None:
                freq = freq.strip()
            if tag is not None:
                tag = tag.strip()
            self.add_word(word, freq, tag)

    def add_word(self, word, freq=None, tag=None):
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: fxsjy/jieba
Commit Name: 99d0fb1a8a00c80c97271b2cc58d52c4fcff0032
Time: 2015-11-09
Author: abcdoyle888@gmail.com
File Name: jieba/__init__.py
Class Name: Tokenizer
Method Name: load_userdict


Project Name: ina-foss/inaSpeechSegmenter
Commit Name: c2ea067281b2cc8dc1e0b1b7954b468a40b01a9b
Time: 2018-04-06
Author: DavidDoukhan@github.com
File Name: setup.py
Class Name:
Method Name:


Project Name: dirty-cat/dirty_cat
Commit Name: f70e71d5c7fdc8e25391e54e74c3402fb323ad5c
Time: 2018-06-06
Author: pierreglaser@msn.com
File Name: examples/plot_employee_salaries.py
Class Name:
Method Name: