1caf32713fc46eac7cca37cc3abb741b053469d1,pythainlp/tokenize/newmm.py,,onecut,#Any#Any#,87

Before Change


        // กรณี length 1 คือ ไม่กำกวมแล้ว ส่งผลลัพธ์ก่อนนี้คืนได้
        if len(q) == 1:
            paths = serialize(words_at, last_p, q[0])
            for w in min(paths, key=len):
                yield w
            last_p = q[0]

        // กรณี length 0  คือ ไม่มีใน dict
        if len(q) == 0:

After Change



      // กรณี length 1 คือ ไม่กำกวมแล้ว ส่งผลลัพธ์ก่อนนี้คืนได้
      if len(q)==1:
          pp = next(bfs_paths_graph(graph, last_p, q[0]))
          // เริ่มต้น last_p = pp[0] เอง
          for p in pp[1:]:
            yield text[last_p:p]
            last_p = p
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: PyThaiNLP/pythainlp
Commit Name: 1caf32713fc46eac7cca37cc3abb741b053469d1
Time: 2018-02-17
Author: wannaphong@yahoo.com
File Name: pythainlp/tokenize/newmm.py
Class Name:
Method Name: onecut


Project Name: pyannote/pyannote-audio
Commit Name: 716b7a51131a1b9ab60cdeea7a898875572bc286
Time: 2018-01-31
Author: bredin@limsi.fr
File Name: pyannote/audio/generators/speaker.py
Class Name: SpeechSegmentGenerator
Method Name: __call__


Project Name: RaRe-Technologies/gensim
Commit Name: ac27b5c67be3f37c81720deca45f8ed242079810
Time: 2013-10-25
Author: radimrehurek@seznam.cz
File Name: gensim/corpora/csvcorpus.py
Class Name: CsvCorpus
Method Name: __iter__