def insert_infocontent_data(germanet_db):
gnet           = germanet.GermaNet(germanet_db)<EOL>gn_counts      = defaultdict(lambda: <NUM_LIT:1.>)<EOL>total_count    = <NUM_LIT:1><EOL>input_file     = gzip.open(os.path.join(os.path.dirname(__file__),<EOL>WORD_COUNT_FILE))<EOL>num_lines_read = <NUM_LIT:0><EOL>num_lines      = <NUM_LIT:0><EOL>for line in input_file:<EOL><INDENT>line       = line.decode('<STR_LIT:utf-8>').strip().split('<STR_LIT:\t>')<EOL>num_lines += <NUM_LIT:1><EOL>if len(line) != <NUM_LIT:3>:<EOL><INDENT>continue<EOL><DEDENT>count, pos, word = line<EOL>num_lines_read += <NUM_LIT:1><EOL>count           = int(count)<EOL>synsets         = set(gnet.synsets(word, pos))<EOL>if not synsets:<EOL><INDENT>continue<EOL><DEDENT>count = float(count) / len(synsets)<EOL>for synset in synsets:<EOL><INDENT>total_count += count<EOL>paths = synset.hypernym_paths<EOL>scount = float(count) / len(paths)<EOL>for path in paths:<EOL><INDENT>for ss in path:<EOL><INDENT>gn_counts[ss._id] += scount<EOL><DEDENT><DEDENT><DEDENT><DEDENT>print('<STR_LIT>'.format(num_lines_read,<EOL>num_lines))<EOL>print('<STR_LIT>'.format(len(gn_counts)))<EOL>print('<STR_LIT>'.format(total_count))<EOL>input_file.close()<EOL>num_updates = <NUM_LIT:0><EOL>for synset in germanet_db.synsets.find():<EOL><INDENT>synset['<STR_LIT>'] = gn_counts[synset['<STR_LIT>']] / total_count<EOL>germanet_db.synsets.save(synset)<EOL>num_updates += <NUM_LIT:1><EOL><DEDENT>print('<STR_LIT>'.format(num_updates))<EOL>
For every synset in GermaNet, inserts count information derived
from SDEWAC.

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