title: ValueError: Could not find stanford-postagger.jar file for hazm library- python NLP
body: <p>I want to run a code that need to stanford postagger.jar. but i have this error:</p>
  
  <pre><code>  File "/usr/lib/python2.7/site-packages/nltk/internals.py", line 562, in find_jar
      (name, path_to_jar))
  ValueError: Could not find stanford-postagger.jar jar file at resources/stanford-postagger.jar
  </code></pre>
  
  <p>How i can fix this error?</p>
  
  <p><strong>EDIT:</strong>
  i use from <a href="https://github.com/sobhe/hazm" rel="nofollow">hazm</a> module:</p>
  
  <pre><code>from hazm import POSTagger
  tagger = POSTagger()
  tagger.tag(word_tokenize('ما بسیار کتاب می‌خوانیم'))
  </code></pre>
  
  <p>and full result:</p>
  
  <pre><code>Traceback (most recent call last):
    File "pyt.py", line 8, in &lt;module&gt;
      tagger = POSTagger()
    File "/home/vahid/dev/hazm/hazm/POSTagger.py", line 14, in __init__
      super(stanford.POSTagger, self).__init__(*args, **kwargs)
    File "/usr/lib/python2.7/site-packages/nltk/tag/stanford.py", line 42, in __init__
      verbose=verbose)
    File "/usr/lib/python2.7/site-packages/nltk/internals.py", line 562, in find_jar
      (name, path_to_jar))
  ValueError: Could not find stanford-postagger.jar jar file at resources/stanford-postagger.jar
  </code></pre>