natural
natural copied to clipboard
tf-idf, adding phrases
Hi, I am trying to add a two word phrase that we can search for. Eg. "meet me" tf-idf should return weight(positive) for this only when both the terms are search.
So, if user searches for 'meet' value should be 0 if user searchers for 'me', value should be 0 if user searches for 'meet me', value should be > 0
Please elaborate a bit more on what you want to achieve. tfidf is a weighting algorithm, it gives insight in how (un)important words are in documents. It is not a search algorithm.
Hugo
@prashant19sep you should perhaps use underscores to unit ngrams that are part of the same phrase so meet_me becomes its own entity.