title: fixing words with spaces using a dictionary look up in python?
body: <p>I have extracted the list of sentences from a document. I am pre-processing this list of sentences to make it more sensible. I am faced with the following problem</p>
  
  <p>I have sentences such as <code>"more recen t ly  the develop ment, wh ich is a po ten t "</code></p>
  
  <p>I would like to correct such sentences using a look up dictionary? to remove the unwanted spaces.</p>
  
  <p>The final output should be <code>"more recently  the development, which is a potent "</code></p>
  
  <p>I would assume that this is a straight forward task in preprocessing text? I need help with some pointers to look for such approaches. Thanks.</p>