def insert_lemmatisation_data(germanet_db):
<EOL>germanet_db.lemmatiser.drop()<EOL>num_lemmas = <NUM_LIT:0><EOL>input_file = gzip.open(os.path.join(os.path.dirname(__file__),<EOL>LEMMATISATION_FILE))<EOL>for line in input_file:<EOL><INDENT>line = line.decode('<STR_LIT>').strip().split('<STR_LIT:\t>')<EOL>assert len(line) == <NUM_LIT:2><EOL>germanet_db.lemmatiser.insert(dict(list(zip(('<STR_LIT>', '<STR_LIT>'), line))))<EOL>num_lemmas += <NUM_LIT:1><EOL><DEDENT>input_file.close()<EOL>germanet_db.lemmatiser.create_index('<STR_LIT>')<EOL>print('<STR_LIT>'.format(num_lemmas))<EOL>
Creates the lemmatiser collection in the given MongoDB instance
using the data derived from the Projekt deutscher Wortschatz.

Arguments:
- `germanet_db`: a pymongo.database.Database object