Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. senseindex = open("/Users/Torri/pythonstuff/senseindex(condensed).txt").readlines()
  2. senseDict = {}
  3. for line in senseindex:
  4. line = line.split().strip()
  5. senseIndices = []
  6. for item in line[2:]:
  7. senseIndices.append(item)
  8. senseDict[line[0]] = senseIndices
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement