Skip to main content
. 2023 May 18;30(8):1448–1455. doi: 10.1093/jamia/ocad071

Table 2.

Constraints on valid target sequences used in constrained decoding and constraint solving

Use Constraint
D First output must be an argument type or the end-of-sequence (EOS) token
D Argument types must be followed by a compatible subtype or by at least one token
D Subtypes must be followed by at least one token
D Tokens may be followed by other tokens, an argument type, the event separator, or EOS
D Tokens must be subsets of the source text
D Argument types in the same event must be compatible
DS Within each argument (T,A,[p1,p2,p3]), the tokens must be ordered left-to-right as p1<p2<p3 relative to the original source text
DS Within each event like (T1,C1,[p1,])+(T2,C2,[q1,]) it must be the case that p1q1
DS Within each event sequence like (T1a,C1a,[p1,])+(T2a,C2a,[q1,])+&(T1b,C1b,[r1,])+ it must be the case that p1r1
Events must contain exactly one trigger argument type
Events must not contain duplicate argument tuples

Note: In the “Use” column, a D indicates a constraint used in constrained decoding. An S indicates a constraint used in constraint solving.