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