title: Extracting names from a text file using Spacy
body: <p>I have a text file which contains lines as shown below:    </p>
  
  <pre><code>Electronically signed : Wes Scott, M.D.; Jun 26 2010 11:10AM CST
  
  The patient was referred by Dr. Jacob Austin.  
  
  Electronically signed by Robert Clowson, M.D.; Janury 15 2015 11:13AM CST
  
  Electronically signed by Dr. John Douglas, M.D.; Jun 16 2017 11:13AM CST
  
  The patient was referred by
  Dr. Jayden Green Olivia.  
  </code></pre>
  
  <p>I want to extract all names using Spacy. I am using Spacy's part of speech tagging and entity recognition but not able to get success.
  May I please know on how it could done? Any help would be appreciable</p>
  
  <p>I am using some code in this way:</p>
  
  <pre><code>import spacy
  nlp = spacy.load('en')
   document_string= " Electronically signed by stupid: Dr. John Douglas, M.D.; 
   Jun 13 2018 11:13AM CST"
  doc = nlp(document_string)
   for sentence in doc.ents:
       print(sentence, sentence.label_) 
  </code></pre>