title: Facing AttributeError: for 'tag_' using Spacy in Python
body: <p>I'm using Spacy for "POS Tagging" and getting below error. I have a dataframe, which has the column "description" in which I need to extract the POS for each word</p>
  
  <p>Dataframe :</p>
  
  <pre><code>No.      Description
  1        My net is not working
  2        I will be out for dinner
  3        Can I order food
  4        Wifi issue
  </code></pre>
  
  <p>Code :</p>
  
  <pre><code>import pandas as pd
  read_data = pd.read_csv('C:\\Users\\abc\\def\\pqr\\Data\\training_data.csv', encoding="utf-8")
  entity = []
  for parsed_doc in read_data['Description']:
      doc = nlp(parsed_doc)
      a = [(X.text, X.tag_) for X in doc.ents]
      entity.append(a)
  </code></pre>
  
  <p>The above code is throwing error:</p>
  
  <blockquote>
    <p>Error : AttributeError: 'spacy.tokens.span.Span' object has no
    attribute 'tag_'</p>
  </blockquote>
  
  <p><strong>However, the same code is working fine for "Label" attribute and also if I use a single sentence</strong></p>
  
  <pre><code>doc = nlp('can you please help me to install wifi')
  for i in doc:
      print (i.text, i.tag_)
  </code></pre>