Skip to content

Commit 843ce02

Browse files
author
ysc
committed
增加新的问题类型(答案类型)
1 parent d705ffa commit 843ce02

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,17 @@
6969
大庆油田是哪一年发现的?
7070
澳门是在哪一年回归祖国怀抱的?
7171
邓小平在什么时候进行南巡讲话?
72+
73+
## 增加新的问题类型(答案类型):
74+
75+
1、在枚举类 org.apdplat.qa.model.QuestionType 中
76+
增加新的问题类型,并在词性和问题类型之间做映射。
77+
78+
2、在资源目录 src/main/resources/questionTypePatterns 中增加新的模式匹配规则来支持新的问题类型的判定
79+
目录中的 3 个文件代表不同抽象层级的模式,只需要在其中一个文件中增加新的模式即可。
80+
81+
3、在类 org.apdplat.qa.questiontypeanalysis.QuestionTypeTransformer 中
82+
将模式匹配规则映射为枚举类org.apdplat.qa.model.QuestionType的实例。
7283
7384
##API接口:
7485

0 commit comments

Comments
 (0)