Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you get it to work? #27

Open
jw4wellness opened this issue Nov 23, 2019 · 1 comment
Open

How do you get it to work? #27

jw4wellness opened this issue Nov 23, 2019 · 1 comment

Comments

@jw4wellness
Copy link

jw4wellness commented Nov 23, 2019

No description provided.

@shyok0
Copy link

shyok0 commented Jan 27, 2020

I reckon, import it as a list and use it to your preference. If that's what you are looking for, then,

Update:
Obivously, best way to read a huge list more often is through a Trie. It can be useful if you need the word list to do spell check, auto completion, generate a random dictionary list and much more.

# Strip words from txt file
raw_list = open('file_path/name', "r").splitlines()

'''
raw_list = 'Wooden\nsome\nword\nthis\nis\na\nword\nalmost\ngutter\ngrim\nburn\ntime\nvictory\ngame\nappend'
raw_list = raw_list.splitlines()
'''

dict_list = []
for line in raw_list:
  dict_list.append(line)
  
# print(dict_list)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants