':param fileid: The name of the underlying file.
:param unit: One of `\'token\'`, `\'word\'`, or `\'chunk\'`.
:param bracket_sent: If true, include sentence bracketing.
:param pos_tag: Whether to include part-of-speech tags.
:param sem_tag: Whether to include semantic tags, namely WordNet lemma
and OOV named entity status.'

def __init__(self, fileid, unit, bracket_sent, pos_tag, sem_tag, wordnet):

    if bracket_sent:
        tagspec = u'.*/s'
    else:
        tagspec = u'.*/s/(punc|wf)'
    self._unit = unit
    self._sent = bracket_sent
    self._pos_tag = pos_tag
    self._sem_tag = sem_tag
    self._wordnet = wordnet
    XMLCorpusView.__init__(self, fileid, tagspec)
