1

I'm try to set feature in replace(-(Hyphen)). But it could not be set as feature value in replace.

DECLARE RE_HyphenSpace(STRING replace);
DECLARE Replace_HyphenSpace;
RETAINTYPE(SPACE);
SPACE @NEWHYPHEN SPACE{->        MARK(RE_HyphenSpace,1,3),MARK(Replace_HyphenSpace,2,2)};
RETAINTYPE;


BLOCK(foreach) RE_HyphenSpace{}
{
STRING hyphenrepl;
Replace_HyphenSpace{->MATCHEDTEXT(hyphenrepl)};
RE_HyphenSpace{->RE_HyphenSpace.replace=hyphenrepl};
}    
4

1 回答 1

0

该块未执行,因为 RE_HyphenSpace 注释不可见,因为 SPACE 注释在 RETAINTYPE 之后再次不可见。您需要删除或移动该RETAINTYPE;行,例如,移动到块的末尾。

免责声明:我是 UIMA Ruta 的开发人员

于 2016-10-13T14:34:14.000 回答