def get_entity_from_dimensions(dimensions, text):
    """
    Infer the underlying entity of a unit (e.g. "volume" for "m^3").

    Just based on the unit's dimensionality if the classifier is disabled.
    """
    new_dimensions = [{'base': l.NAMES[i['base']].entity.name,
                       'power': i['power']} for i in dimensions]

    final_dimensions = sorted(new_dimensions, key=lambda x: x['base'])
    key = l.get_key_from_dimensions(final_dimensions)

    try:
        if clf.USE_CLF:
            ent = clf.disambiguate_entity(key, text)
        else:
            ent = l.DERIVED_ENT[key][0]
    except IndexError:
        logging.debug(u'\tCould not find entity for: %s', key)
        ent = c.Entity(name='unknown', dimensions=new_dimensions)

    return ent
Infer the underlying entity of a unit (e.g. "volume" for "m^3").

    Just based on the unit's dimensionality if the classifier is disabled.