Bases: chatbot.common.chat_conf_manager.ChatBotConfManager
share data class is data component which includes json2object and object2json maethod
the purpose of this class is mainly on keep conversation data on thread
beacuse this api works on rest api we need some info like cookie that where we were on
the last convrsation
add extra data for client
:return:
-
add_test_client_data
()[source]
add unchanged info for client test
:return:
-
convert_to_list_shape
(input)[source]
convert dict to list-dict (client developer request)
:param input:
:return:
-
get_chatbot_id
()[source]
Parameters: | data – |
Returns: | |
-
get_convert_data
()[source]
intent id
:param intent_id:
:return:
-
get_convert_dict_data
()[source]
Parameters: | data – |
Returns: | |
-
get_edit_history
()[source]
intent id
:param intent_id:
:return:
-
get_input_data
()[source]
Parameters: | data – |
Returns: | |
-
get_intent_history
()[source]
intent id
:param intent_id:
:return:
-
get_intent_id
()[source]
Parameters: | data – |
Returns: | |
-
get_morphed_data
()[source]
Parameters: | data – |
Returns: | |
-
get_output_data
()[source]
intent id
:param intent_id:
:return:
-
get_pattern_intent_id
()[source]
Parameters: | data – |
Returns: | |
-
get_request_data
()[source]
intent id
:param intent_id:
:return:
-
get_request_type
()[source]
manage request type
:param data:
:return:
-
get_service_type
()[source]
Parameters: | data – |
Returns: | |
-
get_story_id
()[source]
Parameters: | data – |
Returns: | |
-
get_story_key_entity
()[source]
Parameters: | data – |
Returns: | |
-
get_story_ner_entity
()[source]
manage result of ner(bilstmcrf algoritm) result
:param data:
:return:
-
get_story_slot_entity
(key=None)[source]
Parameters: | data – |
Returns: | |
-
initialize_story
()[source]
-
initialize_story_entity
()[source]
-
load_json
(object)[source]
load josn object to data object
:param object:
:return:
-
merge_share_data
(output_share_data)[source]
simply update all info on this class to output_share_data
:param input_share_data:
:return:
-
replace_story_ner_entity
(obj)[source]
manage result of ner(bilstmcrf algoritm) result
:param data:
:return:
-
replace_story_slot_entity
(obj)[source]
manage result of ner(bilstmcrf algoritm) result
:param data:
:return:
-
set_chatbot_id
(data)[source]
Parameters: | data – |
Returns: | |
-
set_convert_data
(data)[source]
intent id
:param intent_id:
:return:
-
set_convert_dict_data
(data)[source]
Parameters: | data – |
Returns: | |
-
set_edit_history
(edit_type)[source]
intent id
:param intent_id:
:return:
-
set_input_data
(data)[source]
Parameters: | data – |
Returns: | |
-
set_intent_history
(intent_id)[source]
intent id
:param intent_id:
:return:
-
set_intent_id
(data)[source]
Parameters: | data – |
Returns: | |
-
set_morphed_data
(data)[source]
Parameters: | data – |
Returns: | |
-
set_output_data
(data)[source]
intent id
:param intent_id:
:return:
-
set_pattern_intent_id
(data)[source]
Parameters: | data – |
Returns: | |
-
set_request_data
(data)[source]
intent id
:param intent_id:
:return:
-
set_request_type
(data)[source]
manage request type
:param data:
:return:
-
set_service_type
(data)[source]
Parameters: | data – |
Returns: | |
-
set_story_id
(data)[source]
Parameters: | data – |
Returns: | |
-
set_story_key_entity
(data)[source]
Parameters: | data – |
Returns: | |
-
set_story_ner_entity
(key, val)[source]
manage result of ner(bilstmcrf algoritm) result
:param data:
:return:
-
set_story_slot_entity
(key, val)[source]
Parameters: | data – |
Returns: | |
-
to_json
()[source]
convert data object to json
:return:
-
update_story_slot_entity
(key, val)[source]
Parameters: | data – |
Returns: | |