税务表单推荐系统开发指南
1. 向用户提问
在开发税务表单推荐系统时,首先要构建面试模块,该模块的主要目的是向用户提问,收集推荐模块所需的输入信息。为了提高效率,该模块应尽量减少提问数量,对于无关问题则不进行询问。例如,如果用户的总收入超过 50,000 美元,那么询问其利息收入就变得无关紧要。
所有问题都通过第 10 章定义的问题模板以事实的形式表示,以下是包含所有潜在问题的 deffacts
:
(deffacts question-data
"The questions the system can ask."
(question (ident income) (type number)
(text "What was your annual income?"))
(question (ident interest) (type yes-no)
(text "Did you earn more than $400 in interest?"))
(question (ident dependents) (type number)
(text "How many dependents live with you?"))
(question (ident childcare) (type yes-no)
(text "Did you have dependent care expenses?"))
(question (ident moving) (type yes-no)
(text "Did you move for job