Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !pip install gdown # install Google Drive Downloader
- !gdown --id '1IUxCkgRNsoDCLtMZxYXmIePAKgh0m-aZ' # Download Dictionary
- thisdict = {}
- for line in reversed((open('merged.dict.txt', "r").read()).splitlines()): # For each line inside the dictionary file...
- thisdict[(line.split(" ",1))[0]] = (line.split(" ",1))[1].strip() # assign thisdict['WORD_HERE'] = 'ARPABET_TRANSCRIPT_OF_THE_WORD'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement