99d0fb1a8a00c80c97271b2cc58d52c4fcff0032,jieba/__init__.py,Tokenizer,load_userdict,#Tokenizer#Any#,347
Before Change
tup = line.split(" ")
freq, tag = None, None
if len(tup) == 2:
if tup[1].isdigit():
freq = tup[1]
else:
tag = tup[1]
elif len(tup) > 2:
freq, tag = tup[1], tup[2]
self.add_word(tup[0], freq, tag)
except Exception:
After Change
if not line:
continue
// match won"t be None because there"s at least one character
word, freq, tag = re_userdict.match(line).groups()
if freq is not None:
freq = freq.strip()
if tag is not None:
tag = tag.strip()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: fxsjy/jieba
Commit Name: 4a552ca94fbc7b7842add0f9b8d63c5ab16cab37
Time: 2015-03-13
Author: abcdoyle888@gmail.com
File Name: jieba/__init__.py
Class Name:
Method Name: load_userdict
Project Name: etal/cnvkit
Commit Name: 969c31e8e32bedbaa65f82222cff07e068553bc3
Time: 2015-07-06
Author: eric.talevich@gmail.com
File Name: cnvlib/core.py
Class Name:
Method Name: sorter_chrom