File size: 310 Bytes
b5daa8a
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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)