Skip to main content
edited body; edited tags; edited title
Source Link
nbro
  • 41.4k
  • 12
  • 114
  • 205

Sentence How do I compute the structural similarity in Pythonbetween sentences?

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

  1. Python is a good language.
     
  2. 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?

Sentence similarity in Python

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. -

  1. Python is a good language.
     
  2. Language a good python is.

My solution is determining that these two sentences are similar.

  • What could be the possible solution for Structural similarity?
  • How will I maintain structure of sentences?

How do I compute the structural similarity between sentences?

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. For example

  1. Python is a good language.
  2. Language a good python is.

My problem is to determine that these two sentences are similar.

  • What could be the possible solution for structural similarity?
  • How will I maintain the structure of sentences?
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 21 characters in body
Source Link
DukeZhou
  • 6.2k
  • 5
  • 27
  • 54

I am working on a problem whetherwhere I need to determine whether two sentences are similar or not, for that I. I implemented a solution using BM25 algorithm and wordnet synsets for determining syntactic & semantic similarity and. The solution is working pretty good butadequately, and even if jumbling the wordsword order in a sentence even thenthe sentences is jumbled, it is measuring that two sentences are similar e.g. - 

  1. Python is a good language. 
  2. Language a good python is.

My solution is determining that these two sentences are similar what could be the possible solution for Structural similarity. How will I maintain structure of sentences.

  • What could be the possible solution for Structural similarity?
  • How will I maintain structure of sentences?

I am working on a problem whether I need to determine whether two sentences are similar or not, for that I implemented a solution using BM25 algorithm and wordnet synsets for determining syntactic & semantic similarity and solution is working pretty good but if jumbling the words in a sentence even then it is measuring that two sentences are similar e.g. -

  1. Python is a good language.
  2. Language a good python is.

My solution is determining that these two sentences are similar what could be the possible solution for Structural similarity. How will I maintain structure of sentences.

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. - 

  1. Python is a good language. 
  2. Language a good python is.

My solution is determining that these two sentences are similar.

  • What could be the possible solution for Structural similarity?
  • How will I maintain structure of sentences?
Source Link

Sentence similarity in Python

I am working on a problem whether I need to determine whether two sentences are similar or not, for that I implemented a solution using BM25 algorithm and wordnet synsets for determining syntactic & semantic similarity and solution is working pretty good but if jumbling the words in a sentence even then it is measuring that two sentences are similar e.g. -

  1. Python is a good language.
  2. Language a good python is.

My solution is determining that these two sentences are similar what could be the possible solution for Structural similarity. How will I maintain structure of sentences.