Advertisement
CookieAnon

Untitled

May 2nd, 2020
793
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. !pip install gdown # install Google Drive Downloader
  2. !gdown --id '1IUxCkgRNsoDCLtMZxYXmIePAKgh0m-aZ' # Download Dictionary
  3.  
  4. thisdict = {}
  5. for line in reversed((open('merged.dict.txt', "r").read()).splitlines()): # For each line inside the dictionary file...
  6.     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