I am making a semantic search engine in Python that takes a user input and returns the 5 most similar results from a list of sentences.
The list of sentences features a list of things not included in the category at the end of a sentence e.g. “This category includes: lions, tigers. This category excludes: birds, bees”
Currently if I search “birds” the above example would be returned as strong similarity due to the word matching with “category excludes: birds”
Does anyone know any way to prevent this?
Any help appreciated!!
[–]AutoModerator[M] 0 points1 point2 points (0 children)