#NEWLINE# def __init__( self , fileid , sent , tag , strip_space , stem ) : #NEWLINE# #INDENT# '\n        :param fileid: The name of the underlying file.\n        :param sent: If true, include sentence bracketing.\n        :param tag: The name of the tagset to use, or None for no tags.\n        :param strip_space: If true, strip spaces from word tokens.\n        :param stem: If true, then substitute stems for words.\n        ' #NEWLINE# if sent : #NEWLINE# #INDENT# tagspec = '.*/s' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# tagspec = '.*/s/(.*/)?(c|w)' #NEWLINE# #UNINDENT# self . _sent = self #NEWLINE# self . _tag = tag #NEWLINE# self . _strip_space = strip_space #NEWLINE# self . _stem = stem #NEWLINE# self . title = None #NEWLINE# self . author = None #NEWLINE# self . editor = None #NEWLINE# self . resps = None #NEWLINE# XMLCorpusView . __init__ ( self , fileid , tagspec ) #NEWLINE# self . _open ( ) #NEWLINE# self . read_block ( self . _stream , '.*/teiHeader$' , self . handle_header ) #NEWLINE# self . close ( ) #NEWLINE# self . _tag_context = { #NEWLINE# #INDENT# 0 : ( ) , #NEWLINE# #UNINDENT# }