@classmethod
def _from_dict(cls, _dict):
    """Initialize a SemanticRolesOptions object from a json dictionary."""
    args = {}
    if 'limit' in _dict:
        args['limit'] = _dict.get('limit')
    if 'keywords' in _dict:
        args['keywords'] = _dict.get('keywords')
    if 'entities' in _dict:
        args['entities'] = _dict.get('entities')
    return cls(**args)
