title: Pycharm doesn't recognize nltk (installed with Anaconda)
body: <p>I'm using PyCharm to write a program that uses the nltk package. My first line is:</p>
  
  <pre><code> from nltk import word_tokenize, sent_tokenize
  </code></pre>
  
  <p>I have the nltk package imported in my 2.7 Python environment (the environment I'm working on) in PyCharm, as shown here:
  <a href="https://i.stack.imgur.com/vOCvE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vOCvE.png" alt="screenshot PyCharm not recognizing nltk package"></a></p>
  
  <p>However, PyCharm doesn't recognize the <code>from nltk..</code> line. It's grayed out; it also shows this error:</p>
  
  <p><code>This inspection detects names that should resolve but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance items.</code></p>
  
  <p>Here is my code:</p>
  
  <pre><code>from nltk import word_tokenize, sent_tokenize
  
  annot1 = [(500L, u'[they seldom desire anything unless it belongs to     others]')]
  annot2 = (500L, u'[they seldom desire anything unless it belongs to others]')
  
  def scope_match(annot1, annot2):
      tokens1 = annot2[1].encode('utf-8')
      print type(tokens1)
      for string in tokens1:
          tokens2 = nltk.word_tokenize(string)
          print 'these are the tokens: ', tokens2
          new2 = [a.strip('[]').encode('utf-8') for a in tokens2]
          print new2
  
  scope_agr = scope_match(annot1, annot2)
  print scope_agr
  </code></pre>
  
  <p>When I run the code, I get this error:
      `C:\Users\nepal\Anaconda3\envs\py27\python.exe /Users/nepal/PycharmProjects/ScopeCue/ScopeComparison/scope-compare-inter-annotation-agreement-TEST.py</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/nepal/PycharmProjects/ScopeCue/ScopeComparison/scope-compare- inter-annotation-agreement-TEST.py", line 1, in &lt;module&gt;
  from nltk import word_tokenize, sent_tokenize
  ImportError: cannot import name word_tokenize
  
  Process finished with exit code 1`
  </code></pre>
  
  <p>Can somebody guide me to solve this issue? Thanks so much in advance.</p>