Guest User

Untitled

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