Parameters¶
Definition¶
<parameters question_type="type" predicate="p">
The element defines parameters to a particular question.
Attribute | Type | Description |
---|---|---|
verbalize | boolean | Optional. Describes whether a question should be verbalized or not by the system. |
incremental | boolean | Optional. If set to true, the question is subject to "incremental search", i.e. that the answer to the question is specified step-by-step by the user |
graphical_type | string | Optional. For historical reasons, the graphical type of a question must be set to "list" for incremental search to work. |
allow_goal_accommodation | boolean | Optional. |
max_spoken_alts | integer | Optional. The maximum number of possible answers the the question that are read out to the user. Used in connection with incremental search. |
max_reported_hit_count | integer | Optional. The maximum number of hits that are reported to the user. Used in connection with incremental search. |
source | string | Optional. One of the values "domain" or "service" is expected. Used in connection with incremental search. It defines the source of the possible hits. If set to "service", then the child "service_query" must be defined. If set to "domain", all possible individuals defined in the ontology is used. |
on_zero_hits_action | string | Optional. Used in connection with incremental search. If the number of hits is zero, then this action will be carried out, and its corresponding plan will be executed. |
on_too_many_hits_action | string | Optional. Used in connection with incremental search. If the number of hits after all the ask_features has been asked, and this attribute is set, then this action will be carried out, and its corresponding plan will be executed. |
Parents¶
Children¶
Behaviour¶
Examples¶
A parameter set designed to do incremental search for a person.¶
The question that is supposed to get an answer from a findout is the WH-question over the predicate "person". The parameter source is set to service, which means that a http service query will be used to find possible answers to the question. Incremental search is activated. The maximum number of hits that will be reported to the user is 10.
<parameters question_type="wh_question" predicate="person" graphical_type="list"
source="service" incremental="true" max_reported_hit_count="10">
<ask_feature predicate="person_name"/>
<ask_feature predicate="person_city" kpq="true"/>
<ask_feature predicate="person_area"/>
</parameters>
A parameter set designed to do be able to include parameters in an answer.¶
<parameters predicate="ingredient_quantity">
<background predicate="unit"/>
<background predicate="selected_ingredient"/>
</parameters>
A parameter set that includes a hint for answering a particular question.¶
If a user answers "I don't know" to a particular question, the hint defined using this element will be executed. The recommended child element of a hint is inform.
<parameters predicate="ingredient_quantity">
<hint>
<inform>
<proposition predicate="help_information_on_subject" value="hint_on_quantity"/>
</inform>
</hint>
</parameters>
A parameter set that includes a hint for answering a particular yes/no question.¶
If a user answers "I don't know" to a particular yes/no question, the hint defined using this element will be executed. The recommended child element of a hint is inform.
<parameters question_type="yn_question" predicate="add_sugar">
<hint>
<inform>
<proposition predicate="help_information_on_subject" value="hint_on_adding_sugar"/>
</inform>
</hint>
</parameters>
A Parameter Set that Indicates that Asking a Question about a Word Meaning is Always Relevant¶
<parameters question_type="wh_question" predicate="word_meaning">
<always_relevant/>
</parameters>
Last update: April 5, 2022