def precision(reference, test):
    if (not hasattr(reference, 'intersection') or
        not hasattr(test, 'intersection')):
        raise TypeError('reference and test should be sets')

    if len(test) == 0:
        return None
    else:
        return len(reference.intersection(test)) / len(test)
Retrieves full information on the place matching the place_id.
dataset/ETHPy150Open nltk/nltk/nltk/metrics/scores.py/precision--crossover with--dataset/ETHPy150Open slimkrazy/python-google-places/googleplaces/__init__.py/Place.get_details