title: How do I compare two sentence strings for a similarity in python?
body: <p>I would first like to say that I am using tweepy. I found a way to filter out the same string but I am having a hard time filtering out similar strings. </p>
  
  <p>I have two sentence strings that I need to compare (Tweepy keyword ="<em>Donald Trump</em>")</p>
  
  <p>String 1: <code>"Trump Administration Dismisses Surgeon General Vivek Murthy (http)PUGheO7BuT5LUEtHDcgm"</code></p>
  
  <p>String 2:  <code>"Trump Administration Dismisses Surgeon General Vivek Murthy (http)avGqdhRVOO"</code></p>
  
  <p>As you can see they are similar but not the same. I needed to find a way to compare the two and get a number value to decide if the second tweet should be added to the first. I thought I had the solution when I used <code>SequenceMatcher()</code> but it always printed out <code>0.0</code>. I was expecting it to be greater than <code>0.5</code>. However Sequence Matcher only seems to work for one word strings (correct me if I am wrong).</p>
  
  <p>Now you are probably thinking, "just splice off the http portions". That won't work either because it does not account for people tweet names like @cars: <code>xyz zyx</code> and @trucks: <code>xyz zyx</code></p>
  
  <p>Is there some way to compare the two texts? It should be simple but for some reason the solution eludes me. I just learned python a week ago. Still feels weird using indents to discern between what's in a function or not.</p>