Sentence similarity detection #12561
-
Hi, I'd like to compare a grammar corrected text's before - after state. As a first step I'm splitting the text to sentences and then I'd like to match the sentences to pairs. Is there any way to do sentence similarity detection when using I mean I think the sentence similarity detection should work even with a non-NLP approach, just by splitting words by spaces and comparing those. Does Spacy support something similar? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @hyperknot! By default spaCy uses word embeddings for sentence similarity detection. However it's easy to customized this behavior to calculate similarity according to your own preferences. Check out the docs on user hooks for similarity calculation :) |
Beta Was this translation helpful? Give feedback.
Hi @hyperknot! By default spaCy uses word embeddings for sentence similarity detection. However it's easy to customized this behavior to calculate similarity according to your own preferences. Check out the docs on user hooks for similarity calculation :)