没有合适的资源?快使用搜索试试~ 我知道了~
4_对话域_EN1
资源详情
资源评论
资源推荐
User Guide >
Dialogue domains
This section details how to practically encode dialogue domains for OpenDial
using XML.
1. General structure
A dialogue domain in OpenDial follows the skeleton below:
<domain>
<initialstate>
<!--(optional) initial state variables -->
</initialstate>
<parameters>
<!--(optional) prior distributions for rule parameters -->
</parameters>
<model trigger="trigger variables for model 1">
<!--probabilistic rules for model 1 -->
</model>
<model trigger="trigger variables for model 2">
<!-- probabilistic rules for model 2 -->
</model>
...
<model trigger="trigger variables for model n">
<!-- probabilistic rules for model n -->
</model>
<settings>
<!--(optional) domain-specific settings -->
</settings>
</domain>
The settings, initial state and parameters can be left out of the domain
specification if empty. The number of rule-structured models is arbitrary.
For more complex domains, the domain specification can be split in several
files through the import marker:
<import href="path to another file" />
Numerous examples of dialogue domains can be found in the
directory domains and test/domains of the base directory.
XML format for <domain>:
Content
XML Type
Cardinality
Description
<initialstate>
Element
0-1
Initial state for the dialogue
domain
<parameters>
Element
0-1
Prior parameter distributions
<import
href="..."/>
Element
0-n
Import of other XML files
<model
trigger="...">
Element
0-n
Dialogue model
<settings>
Element
0-1
Domain-specific system settings
2. Initial state
The initial state for the domain defines the variables included in the
dialogue state upon starting the dialogue system. Each variable has a
particular identifier and a probability distribution.
Variables with a discrete range of values are defined as categorical tables:
<variable id="variable_id">
<value prob="probability for first value">first value</value>
<value prob="probability for second value">second value</value>
...
<value prob="probability for the nth value">nth value</value>
</variable>
Probability values must be comprised between 0 and 1. If the total
probability amounts to less than 1, OpenDial automatically adds an empty
value (None) for the remaining probability mass. If the prob attribute is
omitted, the value is assumed to have a probability 1.
Here is a simple example of state variable:
<variable id="userIntention">
<value prob="0.5">Want(Object_A)</value>
<value prob="0.3">Want(Object_B)</value>
</variable>
Probability distributions can also be defined for a continuous range, using
the XML element <distrib type="..."> (see below).
XML format for <initialstate>:
Content
XML Type
Cardinality
Description
<variable id="...">
Element
0-n
State variable
XML format for <variable> in <initialstate>:
Content
XML Type
Cardinality
Description
id
Attribute
1
Variable label
<value
prob="p">
Element
1-n
Possible value for the variable
with probability p. If the
attribute prob is omitted, the
probability is assumed to be 1.
or
<distrib
type="...">
Element
0-1
cf. below
IMPORTANT NOTE:
Generally speaking, variable can have arbitrary identifiers, but a
couple of special characters should be avoided. Variables
should
not
include primes ('), curly brackets ({,}) or square brackets
([,]), as these are used internally in OpenDial. Furthermore, variables
ending with ^p, ^t and ^o have a special
function: ^p denotes predictive variables, ^t denotes temporary
剩余13页未读,继续阅读
伯特兰·罗卜
- 粉丝: 21
- 资源: 309
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 2007年至2021年上市银行绿色信贷余额、绿色信贷比率、资本充足率等关键指标合集
- 气象数据2000-2020年地级市月度降水、日照、湿度、风速、温度数据
- DSGE动态随机一般均衡模型全过程案例分析
- 2023-04-06-项目笔记 - 第一百二十二阶段 - 4.4.2.120全局变量的作用域-120 -2024.05.03
- 各省份环境污染责任保险收入及总保费收入00-21年绿色保险数据
- 2000-2022年上市公司非债务税盾-所得税率-盈利现金流波动性-利息覆盖率税负指标数据
- 2023-04-06-项目笔记 - 第一百二十二阶段 - 4.4.2.120全局变量的作用域-120 -2024.05.03
- 终结者远程控制2.2完整源码
- 北京市二手房成交数据2010-2022年
- 【个人毕业设计项目】基于Flutter的聊天社交应用.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0