我正在构建一个样本胶囊,我将在其中添加用户活动数据。样本语音为“我走了2个小时并完成了2公里的距离”。培训源代码如下
[g:AddExerciseResultConcept] i (walked)[v:ExerciseType:Walking] for (2 hr)[v:time.DateTimeExpression] and completed (2 km)[v:measurement.Length]
IDE将其显示为非法计划。
我的[[动作模型就像
action (AddExercise) {
description (adding exercise value)
type (Search)
collect {
input (duration) {
type (time.DurationPeriod)
min (Required) max (One)
}
input (distance) {
type (measurement.Length)
min (Optional)
}
input (exerciseType) {
type (ExerciseType)
min (Required) max (One)
}
}
output (AddExerciseResultConcept)
}
<< [AddExerciseResultConcept是文本类型。我在这里犯了什么错误?