# 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 .feature_info_object_py3 import FeatureInfoObject
[docs]class PhraseListFeatureInfo(FeatureInfoObject):
"""Phraselist Feature.
:param id: A six-digit ID used for Features.
:type id: int
:param name: The name of the Feature.
:type name: str
:param is_active: Indicates if the feature is enabled.
:type is_active: bool
:param phrases: A list of comma-separated values.
:type phrases: str
:param is_exchangeable: An exchangeable phrase list feature are serves as
single feature to the LUIS underlying training algorithm. It is used as a
lexicon lookup feature where its value is 1 if the lexicon contains a
given word or 0 if it doesn’t. Think of an exchangeable as a synonyms
list. A non-exchangeable phrase list feature has all the phrases in the
list serve as separate features to the underlying training algorithm. So,
if you your phrase list feature contains 5 phrases, they will be mapped to
5 separate features. You can think of the non-exchangeable phrase list
feature as an additional bag of words that you are willing to add to LUIS
existing vocabulary features. Think of a non-exchangeable as set of
different words. Default value is true.
:type is_exchangeable: bool
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'is_active': {'key': 'isActive', 'type': 'bool'},
'phrases': {'key': 'phrases', 'type': 'str'},
'is_exchangeable': {'key': 'isExchangeable', 'type': 'bool'},
}
def __init__(self, *, id: int=None, name: str=None, is_active: bool=None, phrases: str=None, is_exchangeable: bool=None, **kwargs) -> None:
super(PhraseListFeatureInfo, self).__init__(id=id, name=name, is_active=is_active, **kwargs)
self.phrases = phrases
self.is_exchangeable = is_exchangeable