title: Sentence comparison with NLP
body: <p>I used lingpipe for sentence detection but I don't have any idea if there is a better tool. As far as I have understood, there is no way to compare two sentences and see if they mean the same thing. </p>
  
  <p>Is there anyother good source where I can have a pre-built method for comparing two sentences and see if they are similar?</p>
  
  <p>My requirement is as below:</p>
  
  <pre><code>String sent1 = "Mary and Meera are my classmates.";
  
  String sent2 = "Meera and Mary are my classmates.";
  
  String sent3 = "I am in Meera and Mary's class.";
  
  // several sentences will be formed and basically what I need to do is
  // this
  
  boolean bothAreEqual = compareOf(sent1, sent2);
  
  sop(bothAreEqual); // should print true
  
  boolean bothAreEqual = compareOf(sent2, sent3);
  
  sop(bothAreEqual);// should print true
  </code></pre>