'Convert lexicon file to a dictionary'

def make_lex_dict(self):

    lex_dict = {}
    for line in self.lexicon_file.split('\n'):
        (word, measure) = line.strip().split(' DCTB ')[0:2]
        lex_dict[word] = float(measure)
    return lex_dict
