# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
[docs]class Sentiment(Model):
"""Sentiment of the input utterance.
:param label: The polarity of the sentiment, can be positive, neutral or
negative.
:type label: str
:param score: Score of the sentiment, ranges from 0 (most negative) to 1
(most positive).
:type score: float
"""
_attribute_map = {
'label': {'key': 'label', 'type': 'str'},
'score': {'key': 'score', 'type': 'float'},
}
def __init__(self, *, label: str=None, score: float=None, **kwargs) -> None:
super(Sentiment, self).__init__(**kwargs)
self.label = label
self.score = score