0eb1299cfe37df81f11ed47f9f61499d4f4244ed,pythainlp/ner/locations.py,,tag_provinces,#Any#,9
Before Change
>>> parsed_docs(d)
["[LOC : "หนองคาย"]", "น่าอยู่", "นอกจากนี้", "ยัง", "มี", "[LOC : "เชียงใหม่"]"]
i = 0
while i < len(text_list):
if text_list[i] in provinces():
text_list[i] = "[LOC : "" + text_list[i] + ""]"
i += 1
return text_list
After Change
output = []
for token in tokens:
if token in province_list:
output.append((token, "B-LOCATION"))
else:
output.append((token, "O"))
return output
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: PyThaiNLP/pythainlp
Commit Name: 0eb1299cfe37df81f11ed47f9f61499d4f4244ed
Time: 2018-11-02
Author: arthit@gmail.com
File Name: pythainlp/ner/locations.py
Class Name:
Method Name: tag_provinces
Project Name: estnltk/estnltk
Commit Name: 731a81341c606564ae399f08b9dd07fb8766e000
Time: 2015-05-29
Author: tpetmanson@gmail.com
File Name: estnltk/text.py
Class Name: Text
Method Name: divide
Project Name: PyThaiNLP/pythainlp
Commit Name: ef2e39e5aa3f519d6679b5e217524671eab2a641
Time: 2020-08-17
Author: arthit@gmail.com
File Name: pythainlp/tag/orchid.py
Class Name:
Method Name: tag_signs
Project Name: PyThaiNLP/pythainlp
Commit Name: 0eb1299cfe37df81f11ed47f9f61499d4f4244ed
Time: 2018-11-02
Author: arthit@gmail.com
File Name: pythainlp/ner/locations.py
Class Name:
Method Name: tag_provinces