'Returns a view specialised for use with particular corpus file.'

def _view(self, filename, tags=None, **kwargs):

    mode = kwargs.pop('mode', NKJPCorpusReader.WORDS_MODE)
    if (mode is NKJPCorpusReader.WORDS_MODE):
        return NKJPCorpus_Morph_View(filename, tags=tags)
    elif (mode is NKJPCorpusReader.SENTS_MODE):
        return NKJPCorpus_Segmentation_View(filename, tags=tags)
    elif (mode is NKJPCorpusReader.HEADER_MODE):
        return NKJPCorpus_Header_View(filename, tags=tags)
    elif (mode is NKJPCorpusReader.RAW_MODE):
        return NKJPCorpus_Text_View(filename, tags=tags, mode=NKJPCorpus_Text_View.RAW_MODE)
    else:
        raise NameError('No    such    mode!')
