@classmethod
def _from_dict(cls, _dict):
    """Initialize a Corpus object from a json dictionary."""
    args = {}
    if 'name' in _dict:
        args['name'] = _dict.get('name')
    else:
        raise ValueError("Required property 'name' not present in Corpus JSON")
    if 'total_words' in _dict:
        args['total_words'] = _dict.get('total_words')
    else:
        raise ValueError(
            "Required property 'total_words' not present in Corpus JSON")
    if 'out_of_vocabulary_words' in _dict:
        args['out_of_vocabulary_words'] = _dict.get('out_of_vocabulary_words')
    else:
        raise ValueError(
            "Required property 'out_of_vocabulary_words' not present in Corpus JSON"
            )
    if 'status' in _dict:
        args['status'] = _dict.get('status')
    else:
        raise ValueError(
            "Required property 'status' not present in Corpus JSON")
    if 'error' in _dict:
        args['error'] = _dict.get('error')
    return cls(**args)
