title: AttributeError: 'list' object has no attribute 'text'
body: <p>I am working with Vader from the nltk package.
  I've imported my dataset following the vader tutorial:   </p>
  
  <pre><code>    list = []
      for line in open("C:\Users\Luca\Desktop\Uni\Tesi\PythonTest\paolo.txt","r").readlines():
          for value in line.split(","):
              list.append(value)
  </code></pre>
  
  <p>Then I've created the function to remove punctuation:</p>
  
  <pre><code>     def _words_only(self):
      text_mod = REGEX_REMOVE_PUNCTUATION.sub('', self.text)
      words_only = text_mod.split()
      words_only = [word for word in words_only if len(word) &gt; 1]
      return words_only
  </code></pre>
  
  <p>But when I try to use the "words only" function I get this error</p>
  
  <pre><code>    AttributeError                            Traceback (most recent call last)
      &lt;ipython-input-14-cbc12179c890&gt; in &lt;module&gt;()
      ----&gt; 1 _words_only(list)
  
      &lt;ipython-input-13-68a545bbbaa4&gt; in _words_only(self)
    1 def _words_only(self):
      ----&gt; 2        text_mod = REGEX_REMOVE_PUNCTUATION.sub('', self.text)
        3        words_only = text_mod.split()
  
  
      AttributeError: 'list' object has no attribute 'text'
  </code></pre>
  
  <p>I am really new to Python. Is it a problem in the importing process or is it something else? Thanks for your help.</p>