title: Read complete penn treebank dataset from local directory
body: <p>I have a complete penn treebank dataset and I want to read it using <code>ptb</code> from <code>ntlk.corpus</code>. But in <a href="http://www.nltk.org/howto/corpus.html#parsed-corpora" rel="nofollow noreferrer">here</a> it is said that:</p>
  
  <blockquote>
    <p>If you have access to a full installation of the Penn Treebank, NLTK
    can be configured to load it as well. Download the ptb package, and in
    the directory nltk_data/corpora/ptb place the BROWN and WSJ
    directories of the Treebank installation (symlinks work as well). Then
    use the ptb module instead of treebank:</p>
  </blockquote>
  
  <p>But i want to keep the dataset in a local directory and then load it from there instead of from <code>nltk_data/corpora/ptb</code>. <code>ptb</code> always searches in that directory but how can i give a path to <code>ptb</code> so that it searches in the given directory? Is there any way i can do that? I have thoroughly searched in web and tried few ways but no way worked for me!</p>