我使用COUNT Condition查找注释中的标点符号数量,但没有收到预期的输出结果。
DECLARE Sentence(INT pmcount);
Conflicts of interest"->Sentence;
DECLARE SentenceLastToken;
Sentence{-PARTOF(SentenceLastToken)->MARKLAST(SentenceLastToken)};
INT Pmcount=0;
Sentence->{ANY+?{->SHIFT(Sentence,1,1,true)} SentenceLastToken{PARTOF(PM)};};
Sentence{COUNT(PM,Pmcount)->Sentence.pmcount=Pmcount};
示例输入:
Conflicts of interest.
预期输出:
Conflicts of interest
pmcount:0
接收到的输出:
Conflicts of interest
pmcount:1
仅当Annotation值之后有任何PM时,我才面临此问题。