'Corpus reader designed to work with National Corpus of Polish.
See http://nkjp.pl/ for more details about NKJP.
use example:
import nltk
import nkjp
from nkjp import NKJPCorpusReader
x = NKJPCorpusReader(root=\'/home/USER/nltk_data/corpora/nkjp/\', fileids=\'\') # obtain the whole corpus
x.header()
x.raw()
x.words()
x.tagged_words(tags=[\'subst\', \'comp\'])  #Link to find more tags: nkjp.pl/poliqarp/help/ense2.html
x.sents()
x = NKJPCorpusReader(root=\'/home/USER/nltk_data/corpora/nkjp/\', fileids=\'Wilk*\') # obtain particular file(s)
x.header(fileids=[\'WilkDom\', \'/home/USER/nltk_data/corpora/nkjp/WilkWilczy\'])
x.tagged_words(fileids=[\'WilkDom\', \'/home/USER/nltk_data/corpora/nkjp/WilkWilczy\'], tags=[\'subst\', \'comp\'])'

def __init__(self, root, fileids='.*'):

    if isinstance(fileids, string_types):
        XMLCorpusReader.__init__(self, root, (fileids + '.*/header.xml'))
    else:
        XMLCorpusReader.__init__(self, root, [(fileid + '/header.xml') for fileid in fileids])
    self._paths = self.get_paths()
