huaweicloudsdkosm 3.1.163__py3-none-any.whl → 3.1.165__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of huaweicloudsdkosm might be problematic. Click here for more details.
- huaweicloudsdkosm/v2/__init__.py +0 -60
- huaweicloudsdkosm/v2/model/__init__.py +0 -60
- huaweicloudsdkosm/v2/osm_async_client.py +45 -1130
- huaweicloudsdkosm/v2/osm_client.py +45 -1130
- {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/METADATA +2 -2
- {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/RECORD +9 -69
- huaweicloudsdkosm/v2/model/answer.py +0 -227
- huaweicloudsdkosm/v2/model/answer_detail.py +0 -194
- huaweicloudsdkosm/v2/model/answer_info.py +0 -231
- huaweicloudsdkosm/v2/model/answer_qa_pair.py +0 -318
- huaweicloudsdkosm/v2/model/article.py +0 -347
- huaweicloudsdkosm/v2/model/ask_question_req.py +0 -316
- huaweicloudsdkosm/v2/model/cbs_flow_entry.py +0 -144
- huaweicloudsdkosm/v2/model/create_ask_question_request.py +0 -197
- huaweicloudsdkosm/v2/model/create_ask_question_response.py +0 -232
- huaweicloudsdkosm/v2/model/create_evaluate_request.py +0 -253
- huaweicloudsdkosm/v2/model/create_evaluate_response.py +0 -174
- huaweicloudsdkosm/v2/model/create_qa_ask_request.py +0 -197
- huaweicloudsdkosm/v2/model/create_qa_ask_response.py +0 -282
- huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py +0 -226
- huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py +0 -174
- huaweicloudsdkosm/v2/model/create_question_in_session_request.py +0 -225
- huaweicloudsdkosm/v2/model/create_question_in_session_response.py +0 -232
- huaweicloudsdkosm/v2/model/create_session_request.py +0 -172
- huaweicloudsdkosm/v2/model/create_session_response.py +0 -174
- huaweicloudsdkosm/v2/model/evaluate_request_req.py +0 -115
- huaweicloudsdkosm/v2/model/extend_question.py +0 -144
- huaweicloudsdkosm/v2/model/feedback_option.py +0 -144
- huaweicloudsdkosm/v2/model/lang_result.py +0 -144
- huaweicloudsdkosm/v2/model/list_articles_request.py +0 -226
- huaweicloudsdkosm/v2/model/list_articles_response.py +0 -174
- huaweicloudsdkosm/v2/model/list_feedback_option_request.py +0 -230
- huaweicloudsdkosm/v2/model/list_feedback_option_response.py +0 -174
- huaweicloudsdkosm/v2/model/list_notices_request.py +0 -198
- huaweicloudsdkosm/v2/model/list_notices_response.py +0 -174
- huaweicloudsdkosm/v2/model/list_recommend_words_request.py +0 -260
- huaweicloudsdkosm/v2/model/list_recommend_words_response.py +0 -203
- huaweicloudsdkosm/v2/model/list_tools_request.py +0 -198
- huaweicloudsdkosm/v2/model/list_tools_response.py +0 -174
- huaweicloudsdkosm/v2/model/notice.py +0 -199
- huaweicloudsdkosm/v2/model/qa_ask_req.py +0 -346
- huaweicloudsdkosm/v2/model/qa_feedback_req.py +0 -345
- huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py +0 -202
- huaweicloudsdkosm/v2/model/qa_flow_hit_result.py +0 -198
- huaweicloudsdkosm/v2/model/qa_graph_answer.py +0 -202
- huaweicloudsdkosm/v2/model/qa_pair.py +0 -289
- huaweicloudsdkosm/v2/model/qabot_answer.py +0 -347
- huaweicloudsdkosm/v2/model/query_associated_question_req.py +0 -172
- huaweicloudsdkosm/v2/model/recommend_word.py +0 -285
- huaweicloudsdkosm/v2/model/relation_theme.py +0 -144
- huaweicloudsdkosm/v2/model/relevance_qapair.py +0 -173
- huaweicloudsdkosm/v2/model/search_articles_req.py +0 -201
- huaweicloudsdkosm/v2/model/search_notices_req.py +0 -143
- huaweicloudsdkosm/v2/model/search_qa_pairs_req.py +0 -144
- huaweicloudsdkosm/v2/model/search_tools_req.py +0 -201
- huaweicloudsdkosm/v2/model/session_ask_question_req.py +0 -288
- huaweicloudsdkosm/v2/model/show_associated_questions_request.py +0 -197
- huaweicloudsdkosm/v2/model/show_associated_questions_response.py +0 -174
- huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py +0 -200
- huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py +0 -170
- huaweicloudsdkosm/v2/model/show_qa_pairs_request.py +0 -225
- huaweicloudsdkosm/v2/model/show_qa_pairs_response.py +0 -174
- huaweicloudsdkosm/v2/model/show_theme_request.py +0 -259
- huaweicloudsdkosm/v2/model/show_theme_response.py +0 -232
- huaweicloudsdkosm/v2/model/simple_qa_pair.py +0 -173
- huaweicloudsdkosm/v2/model/tool.py +0 -287
- {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/LICENSE +0 -0
- {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/WHEEL +0 -0
- {huaweicloudsdkosm-3.1.163.dist-info → huaweicloudsdkosm-3.1.165.dist-info}/top_level.txt +0 -0
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
import six
|
|
4
|
-
|
|
5
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class AnswerInfo:
|
|
9
|
-
|
|
10
|
-
"""
|
|
11
|
-
Attributes:
|
|
12
|
-
openapi_types (dict): The key is attribute name
|
|
13
|
-
and the value is attribute type.
|
|
14
|
-
attribute_map (dict): The key is attribute name
|
|
15
|
-
and the value is json key in definition.
|
|
16
|
-
"""
|
|
17
|
-
sensitive_list = []
|
|
18
|
-
|
|
19
|
-
openapi_types = {
|
|
20
|
-
'answer': 'str',
|
|
21
|
-
'link': 'str',
|
|
22
|
-
'question': 'str',
|
|
23
|
-
'qa_pair_id': 'str',
|
|
24
|
-
'relevance_details': 'list[RelevanceQapair]'
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
attribute_map = {
|
|
28
|
-
'answer': 'answer',
|
|
29
|
-
'link': 'link',
|
|
30
|
-
'question': 'question',
|
|
31
|
-
'qa_pair_id': 'qa_pair_id',
|
|
32
|
-
'relevance_details': 'relevance_details'
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
def __init__(self, answer=None, link=None, question=None, qa_pair_id=None, relevance_details=None):
|
|
36
|
-
r"""AnswerInfo
|
|
37
|
-
|
|
38
|
-
The model defined in huaweicloud sdk
|
|
39
|
-
|
|
40
|
-
:param answer: 答案
|
|
41
|
-
:type answer: str
|
|
42
|
-
:param link: 链接
|
|
43
|
-
:type link: str
|
|
44
|
-
:param question: 问题
|
|
45
|
-
:type question: str
|
|
46
|
-
:param qa_pair_id: 语料Id
|
|
47
|
-
:type qa_pair_id: str
|
|
48
|
-
:param relevance_details: 相关问题详情列表
|
|
49
|
-
:type relevance_details: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`]
|
|
50
|
-
"""
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
self._answer = None
|
|
55
|
-
self._link = None
|
|
56
|
-
self._question = None
|
|
57
|
-
self._qa_pair_id = None
|
|
58
|
-
self._relevance_details = None
|
|
59
|
-
self.discriminator = None
|
|
60
|
-
|
|
61
|
-
if answer is not None:
|
|
62
|
-
self.answer = answer
|
|
63
|
-
if link is not None:
|
|
64
|
-
self.link = link
|
|
65
|
-
if question is not None:
|
|
66
|
-
self.question = question
|
|
67
|
-
if qa_pair_id is not None:
|
|
68
|
-
self.qa_pair_id = qa_pair_id
|
|
69
|
-
if relevance_details is not None:
|
|
70
|
-
self.relevance_details = relevance_details
|
|
71
|
-
|
|
72
|
-
@property
|
|
73
|
-
def answer(self):
|
|
74
|
-
r"""Gets the answer of this AnswerInfo.
|
|
75
|
-
|
|
76
|
-
答案
|
|
77
|
-
|
|
78
|
-
:return: The answer of this AnswerInfo.
|
|
79
|
-
:rtype: str
|
|
80
|
-
"""
|
|
81
|
-
return self._answer
|
|
82
|
-
|
|
83
|
-
@answer.setter
|
|
84
|
-
def answer(self, answer):
|
|
85
|
-
r"""Sets the answer of this AnswerInfo.
|
|
86
|
-
|
|
87
|
-
答案
|
|
88
|
-
|
|
89
|
-
:param answer: The answer of this AnswerInfo.
|
|
90
|
-
:type answer: str
|
|
91
|
-
"""
|
|
92
|
-
self._answer = answer
|
|
93
|
-
|
|
94
|
-
@property
|
|
95
|
-
def link(self):
|
|
96
|
-
r"""Gets the link of this AnswerInfo.
|
|
97
|
-
|
|
98
|
-
链接
|
|
99
|
-
|
|
100
|
-
:return: The link of this AnswerInfo.
|
|
101
|
-
:rtype: str
|
|
102
|
-
"""
|
|
103
|
-
return self._link
|
|
104
|
-
|
|
105
|
-
@link.setter
|
|
106
|
-
def link(self, link):
|
|
107
|
-
r"""Sets the link of this AnswerInfo.
|
|
108
|
-
|
|
109
|
-
链接
|
|
110
|
-
|
|
111
|
-
:param link: The link of this AnswerInfo.
|
|
112
|
-
:type link: str
|
|
113
|
-
"""
|
|
114
|
-
self._link = link
|
|
115
|
-
|
|
116
|
-
@property
|
|
117
|
-
def question(self):
|
|
118
|
-
r"""Gets the question of this AnswerInfo.
|
|
119
|
-
|
|
120
|
-
问题
|
|
121
|
-
|
|
122
|
-
:return: The question of this AnswerInfo.
|
|
123
|
-
:rtype: str
|
|
124
|
-
"""
|
|
125
|
-
return self._question
|
|
126
|
-
|
|
127
|
-
@question.setter
|
|
128
|
-
def question(self, question):
|
|
129
|
-
r"""Sets the question of this AnswerInfo.
|
|
130
|
-
|
|
131
|
-
问题
|
|
132
|
-
|
|
133
|
-
:param question: The question of this AnswerInfo.
|
|
134
|
-
:type question: str
|
|
135
|
-
"""
|
|
136
|
-
self._question = question
|
|
137
|
-
|
|
138
|
-
@property
|
|
139
|
-
def qa_pair_id(self):
|
|
140
|
-
r"""Gets the qa_pair_id of this AnswerInfo.
|
|
141
|
-
|
|
142
|
-
语料Id
|
|
143
|
-
|
|
144
|
-
:return: The qa_pair_id of this AnswerInfo.
|
|
145
|
-
:rtype: str
|
|
146
|
-
"""
|
|
147
|
-
return self._qa_pair_id
|
|
148
|
-
|
|
149
|
-
@qa_pair_id.setter
|
|
150
|
-
def qa_pair_id(self, qa_pair_id):
|
|
151
|
-
r"""Sets the qa_pair_id of this AnswerInfo.
|
|
152
|
-
|
|
153
|
-
语料Id
|
|
154
|
-
|
|
155
|
-
:param qa_pair_id: The qa_pair_id of this AnswerInfo.
|
|
156
|
-
:type qa_pair_id: str
|
|
157
|
-
"""
|
|
158
|
-
self._qa_pair_id = qa_pair_id
|
|
159
|
-
|
|
160
|
-
@property
|
|
161
|
-
def relevance_details(self):
|
|
162
|
-
r"""Gets the relevance_details of this AnswerInfo.
|
|
163
|
-
|
|
164
|
-
相关问题详情列表
|
|
165
|
-
|
|
166
|
-
:return: The relevance_details of this AnswerInfo.
|
|
167
|
-
:rtype: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`]
|
|
168
|
-
"""
|
|
169
|
-
return self._relevance_details
|
|
170
|
-
|
|
171
|
-
@relevance_details.setter
|
|
172
|
-
def relevance_details(self, relevance_details):
|
|
173
|
-
r"""Sets the relevance_details of this AnswerInfo.
|
|
174
|
-
|
|
175
|
-
相关问题详情列表
|
|
176
|
-
|
|
177
|
-
:param relevance_details: The relevance_details of this AnswerInfo.
|
|
178
|
-
:type relevance_details: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`]
|
|
179
|
-
"""
|
|
180
|
-
self._relevance_details = relevance_details
|
|
181
|
-
|
|
182
|
-
def to_dict(self):
|
|
183
|
-
"""Returns the model properties as a dict"""
|
|
184
|
-
result = {}
|
|
185
|
-
|
|
186
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
187
|
-
value = getattr(self, attr)
|
|
188
|
-
if isinstance(value, list):
|
|
189
|
-
result[attr] = list(map(
|
|
190
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
191
|
-
value
|
|
192
|
-
))
|
|
193
|
-
elif hasattr(value, "to_dict"):
|
|
194
|
-
result[attr] = value.to_dict()
|
|
195
|
-
elif isinstance(value, dict):
|
|
196
|
-
result[attr] = dict(map(
|
|
197
|
-
lambda item: (item[0], item[1].to_dict())
|
|
198
|
-
if hasattr(item[1], "to_dict") else item,
|
|
199
|
-
value.items()
|
|
200
|
-
))
|
|
201
|
-
else:
|
|
202
|
-
if attr in self.sensitive_list:
|
|
203
|
-
result[attr] = "****"
|
|
204
|
-
else:
|
|
205
|
-
result[attr] = value
|
|
206
|
-
|
|
207
|
-
return result
|
|
208
|
-
|
|
209
|
-
def to_str(self):
|
|
210
|
-
"""Returns the string representation of the model"""
|
|
211
|
-
import simplejson as json
|
|
212
|
-
if six.PY2:
|
|
213
|
-
import sys
|
|
214
|
-
reload(sys)
|
|
215
|
-
sys.setdefaultencoding("utf-8")
|
|
216
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
217
|
-
|
|
218
|
-
def __repr__(self):
|
|
219
|
-
"""For `print`"""
|
|
220
|
-
return self.to_str()
|
|
221
|
-
|
|
222
|
-
def __eq__(self, other):
|
|
223
|
-
"""Returns true if both objects are equal"""
|
|
224
|
-
if not isinstance(other, AnswerInfo):
|
|
225
|
-
return False
|
|
226
|
-
|
|
227
|
-
return self.__dict__ == other.__dict__
|
|
228
|
-
|
|
229
|
-
def __ne__(self, other):
|
|
230
|
-
"""Returns true if both objects are not equal"""
|
|
231
|
-
return not self == other
|
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
import six
|
|
4
|
-
|
|
5
|
-
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class AnswerQaPair:
|
|
9
|
-
|
|
10
|
-
"""
|
|
11
|
-
Attributes:
|
|
12
|
-
openapi_types (dict): The key is attribute name
|
|
13
|
-
and the value is attribute type.
|
|
14
|
-
attribute_map (dict): The key is attribute name
|
|
15
|
-
and the value is json key in definition.
|
|
16
|
-
"""
|
|
17
|
-
sensitive_list = []
|
|
18
|
-
|
|
19
|
-
openapi_types = {
|
|
20
|
-
'score': 'float',
|
|
21
|
-
'answer': 'str',
|
|
22
|
-
'domain': 'str',
|
|
23
|
-
'link': 'str',
|
|
24
|
-
'question': 'str',
|
|
25
|
-
'qa_pair_id': 'str',
|
|
26
|
-
'relevance_details': 'list[RelevanceQapair]',
|
|
27
|
-
'task_complete': 'bool'
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
attribute_map = {
|
|
31
|
-
'score': 'score',
|
|
32
|
-
'answer': 'answer',
|
|
33
|
-
'domain': 'domain',
|
|
34
|
-
'link': 'link',
|
|
35
|
-
'question': 'question',
|
|
36
|
-
'qa_pair_id': 'qa_pair_id',
|
|
37
|
-
'relevance_details': 'relevance_details',
|
|
38
|
-
'task_complete': 'task_complete'
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
def __init__(self, score=None, answer=None, domain=None, link=None, question=None, qa_pair_id=None, relevance_details=None, task_complete=None):
|
|
42
|
-
r"""AnswerQaPair
|
|
43
|
-
|
|
44
|
-
The model defined in huaweicloud sdk
|
|
45
|
-
|
|
46
|
-
:param score: 相似度得分
|
|
47
|
-
:type score: float
|
|
48
|
-
:param answer: 答案
|
|
49
|
-
:type answer: str
|
|
50
|
-
:param domain: 主题
|
|
51
|
-
:type domain: str
|
|
52
|
-
:param link: 链接
|
|
53
|
-
:type link: str
|
|
54
|
-
:param question: 问题
|
|
55
|
-
:type question: str
|
|
56
|
-
:param qa_pair_id: 语料Id
|
|
57
|
-
:type qa_pair_id: str
|
|
58
|
-
:param relevance_details: 相关问题详情列表
|
|
59
|
-
:type relevance_details: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`]
|
|
60
|
-
:param task_complete: 技能意图识别是否结束
|
|
61
|
-
:type task_complete: bool
|
|
62
|
-
"""
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
self._score = None
|
|
67
|
-
self._answer = None
|
|
68
|
-
self._domain = None
|
|
69
|
-
self._link = None
|
|
70
|
-
self._question = None
|
|
71
|
-
self._qa_pair_id = None
|
|
72
|
-
self._relevance_details = None
|
|
73
|
-
self._task_complete = None
|
|
74
|
-
self.discriminator = None
|
|
75
|
-
|
|
76
|
-
if score is not None:
|
|
77
|
-
self.score = score
|
|
78
|
-
if answer is not None:
|
|
79
|
-
self.answer = answer
|
|
80
|
-
if domain is not None:
|
|
81
|
-
self.domain = domain
|
|
82
|
-
if link is not None:
|
|
83
|
-
self.link = link
|
|
84
|
-
if question is not None:
|
|
85
|
-
self.question = question
|
|
86
|
-
if qa_pair_id is not None:
|
|
87
|
-
self.qa_pair_id = qa_pair_id
|
|
88
|
-
if relevance_details is not None:
|
|
89
|
-
self.relevance_details = relevance_details
|
|
90
|
-
if task_complete is not None:
|
|
91
|
-
self.task_complete = task_complete
|
|
92
|
-
|
|
93
|
-
@property
|
|
94
|
-
def score(self):
|
|
95
|
-
r"""Gets the score of this AnswerQaPair.
|
|
96
|
-
|
|
97
|
-
相似度得分
|
|
98
|
-
|
|
99
|
-
:return: The score of this AnswerQaPair.
|
|
100
|
-
:rtype: float
|
|
101
|
-
"""
|
|
102
|
-
return self._score
|
|
103
|
-
|
|
104
|
-
@score.setter
|
|
105
|
-
def score(self, score):
|
|
106
|
-
r"""Sets the score of this AnswerQaPair.
|
|
107
|
-
|
|
108
|
-
相似度得分
|
|
109
|
-
|
|
110
|
-
:param score: The score of this AnswerQaPair.
|
|
111
|
-
:type score: float
|
|
112
|
-
"""
|
|
113
|
-
self._score = score
|
|
114
|
-
|
|
115
|
-
@property
|
|
116
|
-
def answer(self):
|
|
117
|
-
r"""Gets the answer of this AnswerQaPair.
|
|
118
|
-
|
|
119
|
-
答案
|
|
120
|
-
|
|
121
|
-
:return: The answer of this AnswerQaPair.
|
|
122
|
-
:rtype: str
|
|
123
|
-
"""
|
|
124
|
-
return self._answer
|
|
125
|
-
|
|
126
|
-
@answer.setter
|
|
127
|
-
def answer(self, answer):
|
|
128
|
-
r"""Sets the answer of this AnswerQaPair.
|
|
129
|
-
|
|
130
|
-
答案
|
|
131
|
-
|
|
132
|
-
:param answer: The answer of this AnswerQaPair.
|
|
133
|
-
:type answer: str
|
|
134
|
-
"""
|
|
135
|
-
self._answer = answer
|
|
136
|
-
|
|
137
|
-
@property
|
|
138
|
-
def domain(self):
|
|
139
|
-
r"""Gets the domain of this AnswerQaPair.
|
|
140
|
-
|
|
141
|
-
主题
|
|
142
|
-
|
|
143
|
-
:return: The domain of this AnswerQaPair.
|
|
144
|
-
:rtype: str
|
|
145
|
-
"""
|
|
146
|
-
return self._domain
|
|
147
|
-
|
|
148
|
-
@domain.setter
|
|
149
|
-
def domain(self, domain):
|
|
150
|
-
r"""Sets the domain of this AnswerQaPair.
|
|
151
|
-
|
|
152
|
-
主题
|
|
153
|
-
|
|
154
|
-
:param domain: The domain of this AnswerQaPair.
|
|
155
|
-
:type domain: str
|
|
156
|
-
"""
|
|
157
|
-
self._domain = domain
|
|
158
|
-
|
|
159
|
-
@property
|
|
160
|
-
def link(self):
|
|
161
|
-
r"""Gets the link of this AnswerQaPair.
|
|
162
|
-
|
|
163
|
-
链接
|
|
164
|
-
|
|
165
|
-
:return: The link of this AnswerQaPair.
|
|
166
|
-
:rtype: str
|
|
167
|
-
"""
|
|
168
|
-
return self._link
|
|
169
|
-
|
|
170
|
-
@link.setter
|
|
171
|
-
def link(self, link):
|
|
172
|
-
r"""Sets the link of this AnswerQaPair.
|
|
173
|
-
|
|
174
|
-
链接
|
|
175
|
-
|
|
176
|
-
:param link: The link of this AnswerQaPair.
|
|
177
|
-
:type link: str
|
|
178
|
-
"""
|
|
179
|
-
self._link = link
|
|
180
|
-
|
|
181
|
-
@property
|
|
182
|
-
def question(self):
|
|
183
|
-
r"""Gets the question of this AnswerQaPair.
|
|
184
|
-
|
|
185
|
-
问题
|
|
186
|
-
|
|
187
|
-
:return: The question of this AnswerQaPair.
|
|
188
|
-
:rtype: str
|
|
189
|
-
"""
|
|
190
|
-
return self._question
|
|
191
|
-
|
|
192
|
-
@question.setter
|
|
193
|
-
def question(self, question):
|
|
194
|
-
r"""Sets the question of this AnswerQaPair.
|
|
195
|
-
|
|
196
|
-
问题
|
|
197
|
-
|
|
198
|
-
:param question: The question of this AnswerQaPair.
|
|
199
|
-
:type question: str
|
|
200
|
-
"""
|
|
201
|
-
self._question = question
|
|
202
|
-
|
|
203
|
-
@property
|
|
204
|
-
def qa_pair_id(self):
|
|
205
|
-
r"""Gets the qa_pair_id of this AnswerQaPair.
|
|
206
|
-
|
|
207
|
-
语料Id
|
|
208
|
-
|
|
209
|
-
:return: The qa_pair_id of this AnswerQaPair.
|
|
210
|
-
:rtype: str
|
|
211
|
-
"""
|
|
212
|
-
return self._qa_pair_id
|
|
213
|
-
|
|
214
|
-
@qa_pair_id.setter
|
|
215
|
-
def qa_pair_id(self, qa_pair_id):
|
|
216
|
-
r"""Sets the qa_pair_id of this AnswerQaPair.
|
|
217
|
-
|
|
218
|
-
语料Id
|
|
219
|
-
|
|
220
|
-
:param qa_pair_id: The qa_pair_id of this AnswerQaPair.
|
|
221
|
-
:type qa_pair_id: str
|
|
222
|
-
"""
|
|
223
|
-
self._qa_pair_id = qa_pair_id
|
|
224
|
-
|
|
225
|
-
@property
|
|
226
|
-
def relevance_details(self):
|
|
227
|
-
r"""Gets the relevance_details of this AnswerQaPair.
|
|
228
|
-
|
|
229
|
-
相关问题详情列表
|
|
230
|
-
|
|
231
|
-
:return: The relevance_details of this AnswerQaPair.
|
|
232
|
-
:rtype: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`]
|
|
233
|
-
"""
|
|
234
|
-
return self._relevance_details
|
|
235
|
-
|
|
236
|
-
@relevance_details.setter
|
|
237
|
-
def relevance_details(self, relevance_details):
|
|
238
|
-
r"""Sets the relevance_details of this AnswerQaPair.
|
|
239
|
-
|
|
240
|
-
相关问题详情列表
|
|
241
|
-
|
|
242
|
-
:param relevance_details: The relevance_details of this AnswerQaPair.
|
|
243
|
-
:type relevance_details: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`]
|
|
244
|
-
"""
|
|
245
|
-
self._relevance_details = relevance_details
|
|
246
|
-
|
|
247
|
-
@property
|
|
248
|
-
def task_complete(self):
|
|
249
|
-
r"""Gets the task_complete of this AnswerQaPair.
|
|
250
|
-
|
|
251
|
-
技能意图识别是否结束
|
|
252
|
-
|
|
253
|
-
:return: The task_complete of this AnswerQaPair.
|
|
254
|
-
:rtype: bool
|
|
255
|
-
"""
|
|
256
|
-
return self._task_complete
|
|
257
|
-
|
|
258
|
-
@task_complete.setter
|
|
259
|
-
def task_complete(self, task_complete):
|
|
260
|
-
r"""Sets the task_complete of this AnswerQaPair.
|
|
261
|
-
|
|
262
|
-
技能意图识别是否结束
|
|
263
|
-
|
|
264
|
-
:param task_complete: The task_complete of this AnswerQaPair.
|
|
265
|
-
:type task_complete: bool
|
|
266
|
-
"""
|
|
267
|
-
self._task_complete = task_complete
|
|
268
|
-
|
|
269
|
-
def to_dict(self):
|
|
270
|
-
"""Returns the model properties as a dict"""
|
|
271
|
-
result = {}
|
|
272
|
-
|
|
273
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
274
|
-
value = getattr(self, attr)
|
|
275
|
-
if isinstance(value, list):
|
|
276
|
-
result[attr] = list(map(
|
|
277
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
278
|
-
value
|
|
279
|
-
))
|
|
280
|
-
elif hasattr(value, "to_dict"):
|
|
281
|
-
result[attr] = value.to_dict()
|
|
282
|
-
elif isinstance(value, dict):
|
|
283
|
-
result[attr] = dict(map(
|
|
284
|
-
lambda item: (item[0], item[1].to_dict())
|
|
285
|
-
if hasattr(item[1], "to_dict") else item,
|
|
286
|
-
value.items()
|
|
287
|
-
))
|
|
288
|
-
else:
|
|
289
|
-
if attr in self.sensitive_list:
|
|
290
|
-
result[attr] = "****"
|
|
291
|
-
else:
|
|
292
|
-
result[attr] = value
|
|
293
|
-
|
|
294
|
-
return result
|
|
295
|
-
|
|
296
|
-
def to_str(self):
|
|
297
|
-
"""Returns the string representation of the model"""
|
|
298
|
-
import simplejson as json
|
|
299
|
-
if six.PY2:
|
|
300
|
-
import sys
|
|
301
|
-
reload(sys)
|
|
302
|
-
sys.setdefaultencoding("utf-8")
|
|
303
|
-
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
304
|
-
|
|
305
|
-
def __repr__(self):
|
|
306
|
-
"""For `print`"""
|
|
307
|
-
return self.to_str()
|
|
308
|
-
|
|
309
|
-
def __eq__(self, other):
|
|
310
|
-
"""Returns true if both objects are equal"""
|
|
311
|
-
if not isinstance(other, AnswerQaPair):
|
|
312
|
-
return False
|
|
313
|
-
|
|
314
|
-
return self.__dict__ == other.__dict__
|
|
315
|
-
|
|
316
|
-
def __ne__(self, other):
|
|
317
|
-
"""Returns true if both objects are not equal"""
|
|
318
|
-
return not self == other
|