I am working on a problem where I need to determine whether two sentences are similar or not. I implemented a solution using BM25 algorithm and wordnet synsets for determining syntactic & semantic similarity. The solution is working adequately, and even if the word order in the sentences is jumbled, it is measuring that two sentences are similar e.g. -
For example
- Python is a good language.
- Language a good python is.
My solutionproblem is determiningto determine that these two sentences are similar.
- What could be the possible solution for Structuralstructural similarity?
- How will I maintain the structure of sentences?