初始化项目,由ModelHub XC社区提供模型
Model: Luimas/claim-extractor-detective-qwen3b Source: Original Platform
This commit is contained in:
18
claim.gbnf
Normal file
18
claim.gbnf
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
root ::= "{" ws "\"summary\"" ws ":" ws string ws "," ws "\"publication_date\"" ws ":" ws datev ws "," ws "\"keywords\"" ws ":" ws strarray ws "," ws "\"claims\"" ws ":" ws claimarr ws "," ws "\"contradictions\"" ws ":" ws conarr ws "}" ws
|
||||
datev ::= string | "null"
|
||||
strarray ::= "[" ws ( string ( ws "," ws string )* )? ws "]"
|
||||
qarray ::= "[" ws string ( ws "," ws string )* ws "]"
|
||||
claimarr ::= "[" ws ( claim ( ws "," ws claim )* )? ws "]"
|
||||
claim ::= "{" ws "\"id\"" ws ":" ws int ws "," ws "\"claim\"" ws ":" ws string ws "," ws "\"claim_type\"" ws ":" ws ctype ws "," ws "\"category\"" ws ":" ws string ws "," ws "\"importance\"" ws ":" ws imp ws "," ws "\"stance\"" ws ":" ws stance ws "," ws "\"sentiment\"" ws ":" ws sent ws "," ws "\"evidence_span\"" ws ":" ws string ws "," ws "\"confidence\"" ws ":" ws number ws "," ws "\"verification_questions\"" ws ":" ws qarray ws "}"
|
||||
conarr ::= "[" ws ( con ( ws "," ws con )* )? ws "]"
|
||||
con ::= "{" ws "\"claim_a\"" ws ":" ws int ws "," ws "\"claim_b\"" ws ":" ws int ws "," ws "\"relation\"" ws ":" ws rel ws "," ws "\"explanation\"" ws ":" ws string ws "}"
|
||||
ctype ::= "\"fact\"" | "\"statistic\"" | "\"opinion\"" | "\"prediction\"" | "\"speculation\"" | "\"rhetoric\"" | "\"other\""
|
||||
imp ::= "\"high\"" | "\"medium\"" | "\"low\""
|
||||
stance ::= "\"asserted\"" | "\"denied\"" | "\"hedged\"" | "\"attributed\"" | "\"ironic\""
|
||||
sent ::= "\"positive\"" | "\"negative\"" | "\"neutral\"" | "\"mixed\""
|
||||
rel ::= "\"contradiction\"" | "\"tension\""
|
||||
int ::= [0-9]+
|
||||
number ::= ("0" | "1") ("." [0-9]+)?
|
||||
string ::= "\"" ( [^"\\] | "\\" ["\\/bfnrt] )* "\""
|
||||
ws ::= [ \t\n]*
|
||||
Reference in New Issue
Block a user