UTS_Dictionary / generate_baseline_dataset.py
rain1024's picture
update
b5daa8a
raw
history blame
No virus
310 Bytes
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)