Spaces:
Build error
Build error
File size: 802 Bytes
0827183 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
class ModelResult:
"""Contains recognition result information."""
def __init__(
self, text: str, start: int, end: int, type_name: str, resolution: object
):
"""
Parameters:
----------
text: Substring of the utterance that was recognized.
start: Start character position of the recognized substring.
end: The end character position of the recognized substring.
type_name: The type of the entity that was recognized.
resolution: The recognized entity object.
"""
self.text = text
self.start = start
self.end = end
self.type_name = type_name
self.resolution = resolution
|