Posts

Image
How To Make Retrieval Chatbot using DeepLearning and Bag Of Words Technique? Deep Learning model based on Bag Of Words Fisrt,What is a Bag-of-Words ? A bag-of-words model, or BoW for short, is a way of extracting features from text for use in modeling, such as with machine learning algorithms The approach is very simple and flexible, and can be used in a myriad of ways for extracting features from documents. A bag-of-words is a representation of text that describes the occurrence of words within a document. It involves two things: A vocabulary of known words.  A measure of the presence of known words.  It is called a “ bag ” of words, because any information about the order or structure of words in the document is discarded. The model is only concerned with whether known words occur in the document, not where in the document. The intuition is that documents are similar if they have similar content. Further, that from the content alone we can...
Image
How to Make Retrieval Chatbot Using Machine Learning ? Abstract : A chatbot is an artificial intelligence (AI) software that can simulate a conversation (or a chat) with a user in natural language through messaging applications, websites, mobile apps or through the telephone. Machine Learning Model that based on Cosine Simiarity   The bot rely on the similarity between the input question and all the question s in the data set. In order to compute this similarity we need to choose a similarity measure that would rate the similarity of two sentences, there are a lot of similarity measures for text but we will choose the cosine similarity for this one since it’s one of the most common measures in NLP. Cosine similarity   Definition and how   cosine similarity work? The cosine of two non-zero vectors can be derived by using the Euclidean dot product formula:  Given two vectors of attributes, A and B , the cosine similarity, cos(θ), is r...