File size: 657 Bytes
0827183
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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