':param fileid: The name of the underlying file.
:param sent: If true, include sentence bracketing.
:param tag: The name of the tagset to use, or None for no tags.
:param strip_space: If true, strip spaces from word tokens.
:param stem: If true, then substitute stems for words.'

def __init__(self, fileid, sent, tag, strip_space, stem):

    if sent:
        tagspec = '.*/s'
    else:
        tagspec = '.*/s/(.*/)?(c|w)'
    self._sent = sent
    self._tag = tag
    self._strip_space = strip_space
    self._stem = stem
    self.title = None
    self.author = None
    self.editor = None
    self.resps = None
    XMLCorpusView.__init__(self, fileid, tagspec)
    self._open()
    self.read_block(self._stream, '.*/teiHeader$', self.handle_header)
    self.close()
    self._tag_context = {0: ()}
