Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Generated from 8dfedc91e10fb96edb9aff8158500e9d369ab36a
[Cognitive Services] Update endpoint URL template for LUIS.
  • Loading branch information
AutorestCI committed Aug 7, 2018
commit b56d59483f7ea7be230c7e77d4d39e6e87c2fc00
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class EntityModel(Model):
:type type: str
:param start_index: Required. The position of the first character of the
matched entity within the utterance.
:type start_index: float
:type start_index: int
:param end_index: Required. The position of the last character of the
matched entity within the utterance.
:type end_index: float
:type end_index: int
"""

_validation = {
Expand All @@ -43,8 +43,8 @@ class EntityModel(Model):
'additional_properties': {'key': '', 'type': '{object}'},
'entity': {'key': 'entity', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'start_index': {'key': 'startIndex', 'type': 'float'},
'end_index': {'key': 'endIndex', 'type': 'float'},
'start_index': {'key': 'startIndex', 'type': 'int'},
'end_index': {'key': 'endIndex', 'type': 'int'},
}

def __init__(self, **kwargs):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class EntityModel(Model):
:type type: str
:param start_index: Required. The position of the first character of the
matched entity within the utterance.
:type start_index: float
:type start_index: int
:param end_index: Required. The position of the last character of the
matched entity within the utterance.
:type end_index: float
:type end_index: int
"""

_validation = {
Expand All @@ -43,11 +43,11 @@ class EntityModel(Model):
'additional_properties': {'key': '', 'type': '{object}'},
'entity': {'key': 'entity', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'start_index': {'key': 'startIndex', 'type': 'float'},
'end_index': {'key': 'endIndex', 'type': 'float'},
'start_index': {'key': 'startIndex', 'type': 'int'},
'end_index': {'key': 'endIndex', 'type': 'int'},
}

def __init__(self, *, entity: str, type: str, start_index: float, end_index: float, additional_properties=None, **kwargs) -> None:
def __init__(self, *, entity: str, type: str, start_index: int, end_index: int, additional_properties=None, **kwargs) -> None:
super(EntityModel, self).__init__(**kwargs)
self.additional_properties = additional_properties
self.entity = entity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class EntityWithResolution(EntityModel):
:type type: str
:param start_index: Required. The position of the first character of the
matched entity within the utterance.
:type start_index: float
:type start_index: int
:param end_index: Required. The position of the last character of the
matched entity within the utterance.
:type end_index: float
:type end_index: int
:param resolution: Required. Resolution values for pre-built LUIS
entities.
:type resolution: object
Expand All @@ -47,8 +47,8 @@ class EntityWithResolution(EntityModel):
'additional_properties': {'key': '', 'type': '{object}'},
'entity': {'key': 'entity', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'start_index': {'key': 'startIndex', 'type': 'float'},
'end_index': {'key': 'endIndex', 'type': 'float'},
'start_index': {'key': 'startIndex', 'type': 'int'},
'end_index': {'key': 'endIndex', 'type': 'int'},
'resolution': {'key': 'resolution', 'type': 'object'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class EntityWithResolution(EntityModel):
:type type: str
:param start_index: Required. The position of the first character of the
matched entity within the utterance.
:type start_index: float
:type start_index: int
:param end_index: Required. The position of the last character of the
matched entity within the utterance.
:type end_index: float
:type end_index: int
:param resolution: Required. Resolution values for pre-built LUIS
entities.
:type resolution: object
Expand All @@ -47,11 +47,11 @@ class EntityWithResolution(EntityModel):
'additional_properties': {'key': '', 'type': '{object}'},
'entity': {'key': 'entity', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'start_index': {'key': 'startIndex', 'type': 'float'},
'end_index': {'key': 'endIndex', 'type': 'float'},
'start_index': {'key': 'startIndex', 'type': 'int'},
'end_index': {'key': 'endIndex', 'type': 'int'},
'resolution': {'key': 'resolution', 'type': 'object'},
}

def __init__(self, *, entity: str, type: str, start_index: float, end_index: float, resolution, additional_properties=None, **kwargs) -> None:
def __init__(self, *, entity: str, type: str, start_index: int, end_index: int, resolution, additional_properties=None, **kwargs) -> None:
super(EntityWithResolution, self).__init__(additional_properties=additional_properties, entity=entity, type=type, start_index=start_index, end_index=end_index, **kwargs)
self.resolution = resolution
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class EntityWithScore(EntityModel):
:type type: str
:param start_index: Required. The position of the first character of the
matched entity within the utterance.
:type start_index: float
:type start_index: int
:param end_index: Required. The position of the last character of the
matched entity within the utterance.
:type end_index: float
:type end_index: int
:param score: Required. Associated prediction score for the intent
(float).
:type score: float
Expand All @@ -47,8 +47,8 @@ class EntityWithScore(EntityModel):
'additional_properties': {'key': '', 'type': '{object}'},
'entity': {'key': 'entity', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'start_index': {'key': 'startIndex', 'type': 'float'},
'end_index': {'key': 'endIndex', 'type': 'float'},
'start_index': {'key': 'startIndex', 'type': 'int'},
'end_index': {'key': 'endIndex', 'type': 'int'},
'score': {'key': 'score', 'type': 'float'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class EntityWithScore(EntityModel):
:type type: str
:param start_index: Required. The position of the first character of the
matched entity within the utterance.
:type start_index: float
:type start_index: int
:param end_index: Required. The position of the last character of the
matched entity within the utterance.
:type end_index: float
:type end_index: int
:param score: Required. Associated prediction score for the intent
(float).
:type score: float
Expand All @@ -47,11 +47,11 @@ class EntityWithScore(EntityModel):
'additional_properties': {'key': '', 'type': '{object}'},
'entity': {'key': 'entity', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'start_index': {'key': 'startIndex', 'type': 'float'},
'end_index': {'key': 'endIndex', 'type': 'float'},
'start_index': {'key': 'startIndex', 'type': 'int'},
'end_index': {'key': 'endIndex', 'type': 'int'},
'score': {'key': 'score', 'type': 'float'},
}

def __init__(self, *, entity: str, type: str, start_index: float, end_index: float, score: float, additional_properties=None, **kwargs) -> None:
def __init__(self, *, entity: str, type: str, start_index: int, end_index: int, score: float, additional_properties=None, **kwargs) -> None:
super(EntityWithScore, self).__init__(additional_properties=additional_properties, entity=entity, type=type, start_index=start_index, end_index=end_index, **kwargs)
self.score = score