how to find 2 similar words in atext python

Solutions on MaxInterview for how to find 2 similar words in atext python by the best coders in the world

showing results for - "how to find 2 similar words in atext python"
Norah
17 Jun 2018
1words = sentence.split()
2counts = {}
3for word in words:
4    if word not in counts:
5        counts[word] = 0
6    counts[word] += 1