Professional Documents
Culture Documents
PARAGRAPH
We can use health chatbots for treating stress.
We can use NLP to create chatbots and we will be making health
chatbots now! Health Chatbots cannot replace human counsellors
now.
Step I - Text Normalization
Sentence segmentation
sentence 1: we can use health chatbots for treating stress
sentence 2: We can use NLP to create chatbots and we will be
making health chatbots now!
sentence 3: Health Chatbots cannot replace human counsellors now.
Tokenization
Sentence 1: We can use health chatbots for treating stress .
Sentence 2: We can use NLP to create chatbots and we will be
making health chatbots now !
Sentence 3: Health Chatbots cannot replace human counsellors
now
Lemmatisation
we health chatbot treat stress nlp create make replace counsellor human
we health chatbot treat stress nlp create make replace counsellor human
Sent 1 1 1 1 1 0 0 0 0 0 0
1
we health chatbot treat stress nlp create make replace counsellor human
1 1 1 1 1 0 0 0 0 0 0
1 1 1 0 0 1 1 1 0 0 0
0 1 1 0 0 0 0 0 1 1 1
TFIDF
Document Frequency
we health chatbot treat stress nlp create make counsellor human replace
2 3 3 1 1 1 1 1 1 1 1
Inverse Document Frequency
we health chatbot treat stress nlp create make counsellor human Replace
3/2 3/3 3/3 3/1 3/1 3/1 3/1 3/1 3/1 3/1 3/1
TFIDF(w)= TF(W)*log(IDF(W))
we health chatbot treat stress nlp create make replace counsellor human
DOC 1 1*log3/2 1*log3/3 1*log3/3 1*log3/1 1*log3/1 0*log3/1 0*log3/1 0*log3/1 0*log3/1 0*log3/1 0*log3/1
DOC 2 1*log3/2 1*log3/3 1*log3/3 0*log3/1 0*log3/1 1*log3/1 1*log3/1 1*log3/1 0*log3/1 0*log3/1 0*log3/1
DOC 3 0*log3/2 1*log3/3 1*log3/3 0*log3/1 0*log3/1 0*log3/1 0*log3/1 0*log3/1 1*log3/1 1*log3/1 1*log3/1
IDF values
we health chatbot treat stress nlp create make replace counsellor human
doc 1 0.176 0 0 0.477 0.477 0 0 0 0 0 0
doc 2 0.176 0 0 0 0 0.477 0.477 0.477 0 0 0
doc 3 0 0 0 0 0 0 0 0 0.477 0.477 0.477
Conclusion