def __init__(self, *args, **kwargs): # NOTE: in addition to cat_pattern, ConllChunkCorpusReader also requires # chunk_types as third argument, which defaults to ('NP','VP','PP') CategorizedCorpusReader.__init__(self, kwargs) ConllChunkCorpusReader.__init__(self, *args, **kwargs)
def __init__(self, *args, **kwargs): CategorizedCorpusReader.__init__(self, kwargs) ChunkedCorpusReader.__init__(self, *args, **kwargs)
def paras(self, fileids=None, categories=None): return CategorizedCorpusReader.paras( self, self._resolve(fileids, categories))