规则法-意图识别
2016-08-16 14:48:36 0 举报
AI智能生成
rules
作者其他创作
大纲/内容
意图识别
Server
init
load tag file
load variable file
load pattern file
do_process
hit tags
match variables
match patterns
select patterns
score = sum(variable_weight * length ) * pattern weightmax_score: 70003
output
\"report\":{\"company\":\"通联股份\
Data
tag.define
annual_report 1001company 1002year 1003
variable.define
$[annual_report] annual_report 100$[company] company 120
pattern.define
GID:70001PAT:$[company] 50IF: true:THEN: $[entity] = $[company]ENDGID:70002PAT:($[company]|)$[*]$[annul_report] 60IF: trueTHEN: $[entity] = $[company] $[category1] = \"财务披露\" $[category2] = \"年报\"ENDGID:70003PAT:($[company]|)$[year]$[annul_report] 80IF: trueTHEN: $[entity] = $[company] $[category1] = \"财务披露\" $[category2] = \"年报\"END
entry.define
ENT_CON:($[HIT_PTN 100001] or $[HIT_PTN 100002]) and (true or $[HIT_PTN 100003] or $[HIT_PTN 100004] or $[HIT_PTN 100005] or $[HIT_PTN 100006] or $[HIT_PTN 100010] or $[HIT_PTN 100011] or $[HIT_PTN 100012]PRI:50 or $[HIT_PTN 100013] or $[HIT_PTN 100014] or $[HIT_PTN 100015]LCR:30
tag.dict
TAG:annual_report年报年度报告年度财报TAG:company通联股份通联伊利股份伊利...
0 条评论
下一页