#NEWLINE# def __init__( self , root , nomfile , framefiles = '' , nounsfile = None , parse_fileid_xform = None , parse_corpus = None , encoding = 'utf8' ) : #NEWLINE# #INDENT# '\n        :param root: The root directory for this corpus.\n        :param nomfile: The name of the file containing the predicate-\n            argument annotations (relative to ``root``).\n        :param framefiles: A list or regexp specifying the frameset\n            fileids for this corpus.\n        :param parse_fileid_xform: A transform that should be applied\n            to the fileids in this corpus.  This should be a function\n            of one argument (a fileid) that returns a string (the new\n            fileid).\n        :param parse_corpus: The corpus containing the parse trees\n            corresponding to this corpus.  These parse trees are\n            necessary to resolve the tree pointers used by nombank.\n        ' #NEWLINE# if isinstance ( framefiles , string_types ) : #NEWLINE# #INDENT# framefiles = find_corpus_fileids ( root , framefiles ) #NEWLINE# #UNINDENT# framefiles = list ( framefiles ) #NEWLINE# CorpusReader . __init__ ( nomfile , root , ( [ nomfile , nounsfile ] + framefiles ) , encoding ) #NEWLINE# self . _nomfile = nomfile #NEWLINE# self . _framefiles = framefiles #NEWLINE# self . _nounsfile = nounsfile #NEWLINE# self . _parse_fileid_xform = parse_fileid_xform #NEWLINE# self . _parse_corpus = parse_corpus