def _to_dict(self):
        """Return a json dictionary representing this model."""
        _dict = {}
        if hasattr(self, 'confidence') and self.confidence is not None:
            _dict['confidence'] = self.confidence
        if hasattr(self, 'word') and self.word is not None:
            _dict['word'] = self.word
        return _dict
def _to_dict ( self ) : _dict = { } if hasattr ( self , 'confidence' ) and self . confidence is not None : _dict [ 'confidence' ] = self . confidence if hasattr ( self , 'word' ) and self . word is not None : _dict [ 'word' ] = self . word return _dict
Return a json dictionary representing this model.