title: Stripping proper nouns from text
body: <p>I have a df with several thousand rows of text data.  I'm using spaCy to do some NLP on a single column of that df and and am trying to remove proper nouns, stop words, and punctuation from my text data using the following:</p>
  
  <pre><code>tokens = []
  lemma = []
  pos = []
  
  for doc in nlp.pipe(df['TIP_all_txt'].astype('unicode').values, batch_size=9845,
                          n_threads=3):
      if doc.is_parsed:
          tokens.append([n.text for n in doc if not n.is_punct and not n.is_stop and not n.is_space and not n.is_propn])
          lemma.append([n.lemma_ for n in doc if not n.is_punct and not n.is_stop and not n.is_space and not n.is_propn])
          pos.append([n.pos_ for n in doc if not n.is_punct and not n.is_stop and not n.is_space and not n.is_propn])
      else:
          tokens.append(None)
          lemma.append(None)
          pos.append(None)
  
  df['s_tokens_all_txt'] = tokens
  df['s_lemmas_all_txt'] = lemma
  df['s_pos_all_txt'] = pos
  
  df.head()
  </code></pre>
  
  <p>But I get this error and I'm not sure why:</p>
  
  <pre><code>---------------------------------------------------------------------------
  AttributeError                            Traceback (most recent call last)
  &lt;ipython-input-34-73578fd46847&gt; in &lt;module&gt;()
        6                         n_threads=3):
        7     if doc.is_parsed:
  ----&gt; 8         tokens.append([n.text for n in doc if not n.is_punct and not n.is_stop and not n.is_space and not n.is_propn])
        9         lemma.append([n.lemma_ for n in doc if not n.is_punct and not n.is_stop and not n.is_space and not n.is_propn])
       10         pos.append([n.pos_ for n in doc if not n.is_punct and not n.is_stop and not n.is_space and not n.is_propn])
  
  &lt;ipython-input-34-73578fd46847&gt; in &lt;listcomp&gt;(.0)
        6                         n_threads=3):
        7     if doc.is_parsed:
  ----&gt; 8         tokens.append([n.text for n in doc if not n.is_punct and not n.is_stop and not n.is_space and not n.is_propn])
        9         lemma.append([n.lemma_ for n in doc if not n.is_punct and not n.is_stop and not n.is_space and not n.is_propn])
       10         pos.append([n.pos_ for n in doc if not n.is_punct and not n.is_stop and not n.is_space and not n.is_propn])
  
  AttributeError: 'spacy.tokens.token.Token' object has no attribute 'is_propn'
  </code></pre>
  
  <p>If I take out the not n.is_propn the code runs as expected.  I've googled around and read the spaCy documentation, but haven't been able to find an answer thus far.</p>