25. Bot Configuration¶
A bot configuration consists of items that control the overall behavior of the dialog engine.
In addition, it consists of the following subsections such as bot string processing and additional function settings.
- conversations
- splitter/joiner
- spelling
- translation
- sentiment
Configuration Example
bot:
version: v1.0
brain: brain
initial_question: Good morning.
initial_question_srai: Good evening.
default_response: unknown
default_response_srai: YEMPTY
empty_string: YEMPTY
exit_response: Exit.
exit_response_srai: YEXITRESPONSE
override_properties: true
max_question_recursion: 1000
max_question_timeout: 60
max_search_depth: 100
max_search_timeout: 60
max_search_condition: 20
max_search_srai: 50
max_categories: 20000
spelling:
load: false
classname: programy.spelling.norvig.NorvigSpellingChecker
corpus: file
check_before: false
check_and_retry: false
conversations:
save: true
load: false
joiner:
classname: programy.dialog.joiner.joiner.SentenceJoiner
join_chars: .?!。?!
terminator: .
splitter:
classname: programy.dialog.splitter.splitter.SentenceSplitter
split_chars: .
25.1. initial_question¶
Set value | Content |
---|---|
initial_question_srai | A start-up utterance. The utterance to be made at startup of client. The scenario described in AIML works and generates a response. |
initial_question | Startup response. Specifies the response to return if the scenario corresponding to initial_question_srai is not listed. |
25.2. default_response¶
Set value | Content |
---|---|
default_response_srai | An utterance executed if there is no matching pattern. The scenario described in AIML works and generates a response. |
default_response | Response to return if there is no matching pattern.Specify the response to return if the scenario corresponding to default_response_srai is not described.The default-response in properties has a higher priority than the setting, and the response in properties takes precedence over. |
25.3. empty_string¶
Set value | Content |
---|---|
empty_string | An utterance to be processed when there is no processing result of pre_processor. If there is no processing result of pre_processor, the scenario operates with this description as an utterance and generates a response. |
25.4. max_search_depth¶
Set value | Content |
---|---|
max_question_recursion | Maximum number of sentence searches. Specify the maximum number of searches when a long text is input, divided by split characters, and the dialog scenario is executed multiple times. Returns default-response if the maximum number of times is reached. |
max_question_timeout | Maximum sentence search time. Specify the maximum processing time in units of seconds when a long text is input, divided by split characters, and the dialog scenario is executed multiple times internally. If the maximum processing time is exceeded, default-response is returned. |
max_search_timeout | Specify the maximum time, in seconds, to search for a word. Specify the maximum search time in seconds for a word search during a sentence search, such as when a long pattern is encountered during a sentence search. Returns default-response if maximum processing time is exceeded. |
max_search_depth | Maximum number of word search branches. Specify the maximum number of times that a word can be searched for if it becomes too numerous using wildcards , set and so on. Returns default-response if the maximum number of word searches is reached. |
max_search_condition | Maximum number of loops of condition loop . Specify the maximum number of loops that can occur when a condition loop is spesified. This prevents an infiniteloop when the condition does not match. Returns default-response if the maximum number of loops is reached. |
max_search_srai | Maximum number of srai recursive calls. Specify the maximum number of recursive calls if the description of srai is a recursive call. Returns default-response if the maximum number of times is reached. |
max_categories | Maximum number of categories to load. Specify the maximum number of AIML categories to load. If the category specified in AIML exceeds the upper limit, loading is not performed. Categories that were not imported will be described in errors description as Max categories [n] exceeded . |
25.5. override_properties¶
Set value | Content |
---|---|
override_properties | Override permission flag for the name variable. If false, the name variable of the same name is not overwritten. |
25.6. exit_response¶
Set value | Content |
---|---|
exit_response_srai | End utterance. An utterance to be executed at the end of the client. The scenario described in AIML operates and generates a response. |
exit_response | End response. exit_response_srai specifies a response to return if the corresponding scenario is not described. |