import json


def load_document_stats(filepath):
    """Loads document level stats which were collected
    during index creation
    """

    with open(filepath, 'r') as f:
        return json.loads(f.read())