from underthesea.transformer.tagged_feature import lower_words as dictionary | |
from os.path import dirname, join | |
words = sorted(dictionary) | |
print(words[:100]) | |
pwd = dirname(__file__) | |
data_file = join(pwd, "data", "data.txt") | |
with open(data_file, "w") as f: | |
content = "\n".join(words) | |
f.write(content) | |