docstr: 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'])
docstr_tok: ["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","'","]",")"]
code: def __init__(self, root, fileids=".*"):
      """
      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'])
      """
      if isinstance(fileids, str):
          XMLCorpusReader.__init__(
              self, root, fileids + ".*/header.xml"
          )
      else:
          XMLCorpusReader.__init__(
              self, root, [fileid + "/header.xml" for fileid in fileids]
          )
      self._paths = self.get_paths()
  
imports: import functools
  import os
  import re
  import tempfile
  from nltk.corpus.reader.util import concat
  from nltk.corpus.reader.xmldocs import XMLCorpusReader, XMLCorpusView
label_desc: Use image node_id 1 to create a new NKJPCorpusReader object from inherited base classes: XMLCorpusReader with example: obj = NKJPCorpusReader(root, fileids)