Guest User

Untitled

a guest
Jan 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. ...
  2. synonyms = defaultdict(set)
  3. for w1, w2 in synonym_words:
  4. synonyms[w1].append(w2)
  5. synonyms[w2].append(w1)
  6. ...
  7. elif w2 in synonyms.get(w1, tuple()):
  8. continue
Add Comment
Please, Sign In to add comment