37bcfe44411ec02455aa2a3543252bd5321a7e39,pythainlp/tag/perceptron.py,,_postag_clean,#Any#Any#Any#Any#,28
Before Change
_t = []
words = tag_sign(words)
t2 = tagger.tag(words)
i = 0
while i < len(t2):
word = to_text(t2[i][0])
tag = t2[i][1]
_t.append((word, tag))
i += 1
return _t
def tag(words: List[str], corpus: str = "pud") -> List[Tuple[str, str]]:
After Change
words = tag_signs(words)
word_tags = tagger.tag(words)
return [(to_text(word_tag[0]), word_tag[1]) for word_tag in word_tags]
def tag(words: List[str], corpus: str = "pud") -> List[Tuple[str, str]]:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: PyThaiNLP/pythainlp
Commit Name: 37bcfe44411ec02455aa2a3543252bd5321a7e39
Time: 2020-08-17
Author: arthit@gmail.com
File Name: pythainlp/tag/perceptron.py
Class Name:
Method Name: _postag_clean
Project Name: PyThaiNLP/pythainlp
Commit Name: 37bcfe44411ec02455aa2a3543252bd5321a7e39
Time: 2020-08-17
Author: arthit@gmail.com
File Name: pythainlp/tag/perceptron.py
Class Name:
Method Name: _postag_clean
Project Name: PyThaiNLP/pythainlp
Commit Name: ad47e955fc7b5b424cebb77f3ee7fae568c62e9d
Time: 2017-10-07
Author: wannaphong@yahoo.com
File Name: pythainlp/romanization/pyicu.py
Class Name:
Method Name: romanization
Project Name: PyThaiNLP/pythainlp
Commit Name: 318ff1d85a6acb0e28560f2b8ee5d4e2cb32e5df
Time: 2017-07-05
Author: wannaphong@yahoo.com
File Name: pythainlp/tokenize/newmm.py
Class Name:
Method Name: listcut