This commit is contained in:
2022-10-22 11:01:52 +08:00
commit 200117b921
105 changed files with 26944 additions and 0 deletions

View File

@ -0,0 +1,14 @@
from models import WordData, Session
words = []
with open("./google-10000-english.txt", "r") as f:
words = f.readlines()
with Session() as session:
for word in words:
newword = WordData(word=word.strip())
# newword = WordData(spelling=word.strip())
session.add(newword)
session.commit()