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

Before Change


            f = open(f, "rb")
        for lineno, ln in enumerate(f, 1):
            try:
                line = ln.strip().decode("utf-8").lstrip("\ufeff")
                if not line:
                    continue
                tup = line.split(" ")

After Change


            word, freq, tag = re_userdict.match(line).groups()
            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: nilearn/nilearn
Commit Name: b2a07e8dc86a5d057fc38c4b85461031cd4b78b9
Time: 2018-10-10
Author: pierre.bellec@gmail.com
File Name: nilearn/plotting/html_stat_map.py
Class Name:
Method Name: view_stat_map


Project Name: invesalius/invesalius3
Commit Name: b331b9f29062a0e888dafc7a7d19ca8fa53286c1
Time: 2020-03-23
Author: totonixsame@gmail.com
File Name: invesalius/segmentation/brain/segment.py
Class Name: BrainSegmenter
Method Name: segment