Skip to content

Instantly share code, notes, and snippets.

@alexgolec
Created January 18, 2019 16:32
Show Gist options
  • Save alexgolec/f5a1466779aec292f498f6c1bfc5bf03 to your computer and use it in GitHub Desktop.
Save alexgolec/f5a1466779aec292f498f6c1bfc5bf03 to your computer and use it in GitHub Desktop.
...
synonyms = {}
for w1, w2 in synonym_words:
synonyms[w1] = w2
...
elif synonyms[w1] == w2:
continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment