def init(self):
        infile = open(self._datafile)
        num_lms = int(infile.readline())

        vocab_size = int(infile.readline())
        self._vocab = {}
        for ii in xrange(vocab_size):
            self._vocab[infile.readline().strip()] = ii
        print("Done reading %i vocab (Python)" % vocab_size)

        self._corpora = {}
        for ii in xrange(num_lms):
            line = infile.readline()
            corpus, compare = line.split()
            self._corpora[corpus] = ii

        print(self._corpora.keys()[:10])
        self._lm.read_counts(self._datafile)
dataset/ETHPy150Open Pinafore/qb/clm/lm_wrapper.py/LanguageModelReader.init/original