clean code

This commit is contained in:
julius 2022-07-10 02:48:14 +00:00
parent 009c59960c
commit 4cbf662a03
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,6 @@
from itertools import chain from itertools import chain
from dict_dl import Queue, WordParser, cw, oft, ot, uq, rb, uqall from dict_dl import Queue, WordParser, ot, rb, uq, uqall
class MWThesaurusParser(WordParser): class MWThesaurusParser(WordParser):

View File

@ -3,11 +3,15 @@
# from wordcloud import STOPWORDS, WordCloud # from wordcloud import STOPWORDS, WordCloud
from dict_dl import Dictionary from dict_dl import Dictionary
# d = Dictionary("en_merriam_webster/", "_mw.json") d = Dictionary("en_merriam_webster/", "_mw.json")
d = Dictionary("en_MW_thesaurus/", "_mwt.json") # d = Dictionary("en_MW_thesaurus/", "_mwt.json")
# d = Dictionary("de_duden/", "_duden.json") # d = Dictionary("de_duden/", "_duden.json")
print(f"{d.readtime:.06f}") print(f"{d.readtime:.06f}")
# print([k for k in d if not all([c in string.ascii_letters for c in k])])
print([k for k in d if "?" in k])
exit()
again = set() again = set()
for k,v in d.items(): for k,v in d.items():
for ke,di in v.items(): for ke,di in v.items():