@cached(_CACHE, key=partial(hashkey, 'depechemood'))
def load_depechemood(data_dir=None, weighting='normfreq'):
    if data_dir is None:
        data_dir = os.path.join(DEFAULT_DATA_DIR, 'DepecheMood_V1.0')
    fname = os.path.join(data_dir, 'DepecheMood_' + weighting + '.txt')
    # let's make sure this file exists...
    _ = os.path.isfile(fname)
    logger.info('Loading DepecheMood lexicon from %s', fname)
    with open(fname, 'r') as csvfile:
        csvreader = csv.reader(csvfile, delimiter='\t')
        rows = list(csvreader)
    cols = rows[0]
    return {row[0]: {cols[i]: float(row[i]) for i in range(1, 9)}
            for row in rows[1:]}
.. versionadded:: 2016.3.0
dataset/ETHPy150Open chartbeat-labs/textacy/textacy/data.py/load_depechemood--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/postgres.py/datadir_init