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