cohit's picture
Upload folder using huggingface_hub
0827183 verified
raw
history blame contribute delete
657 Bytes
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
class FoundValue:
"""Represents a result from matching user input against a list of choices"""
def __init__(self, value: str, index: int, score: float):
"""
Parameters:
----------
value: The value that was matched.
index: The index of the value that was matched.
score: The accuracy with which the synonym matched the specified portion of the utterance.
A value of 1.0 would indicate a perfect match.
"""
self.value = value
self.index = index
self.score = score