def __init__(self, mongo_db, cache_size = DEFAULT_CACHE_SIZE):
self._mongo_db      = mongo_db<EOL>self._lemma_cache   = None<EOL>self._synset_cache  = None<EOL>self.max_min_depths = {}<EOL>try:<EOL><INDENT>self.__dict__.update((k, v) for (k, v)<EOL>in self._mongo_db.metainfo.find_one().items()<EOL>if k not in GERMANET_METAINFO_IGNORE_KEYS)<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>self._lemma_cache  = repoze.lru.LRUCache(cache_size)<EOL>self._synset_cache = repoze.lru.LRUCache(cache_size)<EOL><DEDENT>except NameError:<EOL><INDENT>pass<EOL><DEDENT>
Creates a new GermaNet object.

Arguments:
- `mongo_db`: a pymongo.database.Database object containing
  the GermaNet lexicon