96afb971f6f78b5a230627a717e2d3c82c567ca4,Matcher/matcher.py,Matcher,wordSegmentation,#Matcher#Any#,70

Before Change


        if self.useTaiba:
            return Taiba.lcut(string,CRF=True)
        else:
            return jieba.cut(string,cut_all=True)

    def TitlesSegmentation(self, cleanStopwords=False):

        

After Change


        if self.useTaiba:
            tp = Taiba.lcut(string,CRF=True) // list
        else:
            tp = jieba.cut(string,cut_all=True) // generator
            
        return [q for q in tp]

    def TitlesSegmentation(self, cleanStopwords=False):

        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: zake7749/PTT-Chat-Generator
Commit Name: 96afb971f6f78b5a230627a717e2d3c82c567ca4
Time: 2017-04-24
Author: zake7749@gmail.com
File Name: Matcher/matcher.py
Class Name: Matcher
Method Name: wordSegmentation


Project Name: huyingxi/Synonyms
Commit Name: 0e5794cfff656875b8270680f65098b07cfdf598
Time: 2018-03-01
Author: hailiang.hl.wang@gmail.com
File Name: synonyms/__init__.py
Class Name:
Method Name: compare


Project Name: zake7749/PTT-Chat-Generator
Commit Name: 0554e139d1a706396cf53f3f794629aeb3ee48e0
Time: 2016-10-12
Author: zake7749@gmail.com
File Name: tfidf.py
Class Name: TfIdfAnalyst
Method Name: corpus_segmentation