'Construct a new wordnet corpus reader, with the given root
directory.'

def __init__(self, root, omw_reader):

    super(WordNetCorpusReader, self).__init__(root, self._FILES, encoding=self._ENCODING)
    self._lemma_pos_offset_map = defaultdict(dict)
    self._synset_offset_cache = defaultdict(dict)
    self._max_depth = defaultdict(dict)
    self._omw_reader = omw_reader
    self._lang_data = defaultdict(list)
    self._data_file_map = {}
    self._exception_map = {}
    self._lexnames = []
    self._key_count_file = None
    self._key_synset_file = None
    for (i, line) in enumerate(self.open(u'lexnames')):
        (index, lexname, _) = line.split()
        assert (int(index) == i)
        self._lexnames.append(lexname)
    self._load_lemma_pos_offset_map()
    self._load_exception_map()
