title: Cannot replace spaCy lemmatized pronouns (-PRON-) through text
body: <p>I'm trying to lemmatise a text with spaCy. Since spaCy uses -PRON- as lemma for personal pronouns, I want to keep the original text in all those cases. </p>
  
  <p>Here's the relevant section of my code:</p>
  
  <p>...</p>
  
  <pre><code>fout = open('test.txt', 'w+')
  doc = nlp(text)
  for word in doc:
      if word.lemma_ == "-PRON-":
          write = word.text
          print(write)
      else:
          write = word.lemma_
      fout.write(str(write))
      fout.write(" ")
  </code></pre>
  
  <p>...</p>
  
  <p>The print statement does print the original words for the cases where spaCy attributes the lemma '-PRON-'.</p>
  
  <p>However, my output file (test.txt) always contains '-PRON-' for those cases, even though I would expect it to write the original words for those cases (I, us etc.)</p>
  
  <p>What am I missing?</p>
  
  <p>I tried different versions, including using the pos_ tag to identify the pronouns etc. but always with the same result, i.e., that my output contains '-PRON-'s</p>