Download our e-book of Introduction To Python
Shashank Shanu
2 years ago
Sentence 1: My name is Sumit. I like InsideAIML discuss portal
Sentence 2: InsideAIML Discuss portal is great
all_keywords = (my, name, is, sumit, insideaiml, discuss, portal, great, i, like)
vocabulary = (sumit, insideaiml, discuss, portal)
Sentence 1: bag of words [1,1,1,1]
Sentence 2: bag of words [0,1,1,1]
sumit-> [Sentence 1]
insideaiml -> [Sentence2, Sentence1]
discuss -> [Sentence2, Sentence1]
portal -> [Sentence1]