我开始学习 UIMA Ruta 并且在任务中遇到了一些麻烦。我需要添加一个简单的规则,该规则将创建名为 FLName 的新组合注释,该注释将由 FirstName 和 LastName 注释组成,它们音译每个西里尔字母书写的单词。这是我的代码,有人能找到我错的地方吗?
Main
Document {-> CALL(TranslitCyrillic)};
Document {-> CALL(AnnotatePerson)};
Symbol {-> UNMARK(Symbol)};
Document {-> RETAINTYPE(SPACE)};
ALL {-> UNMARK(ALL)};
AnnotatePerson
DECLARE Annotation FirstName (STRING first_name);
DECLARE Annotation LastName (STRING last_name);
DECLARE Annotation FLName(STRING first_name, STRING last_name);
//in this rule trouble
Word {FEATURE("translit", "beishor"), FEATURE("translit", "bishop") -> CREATE(FLName), FILL(FirstName, "first_name" = Word.translit),
FILL(LastName, "last_name" = Word.translit)};
Word {FEATURE("translit", "beishor") -> CREATE(FirstName), FILL(FirstName, "first_name" = Word.translit)}
Word {FEATURE("translit", "bishop") -> CREATE(LastName), FILL(LastName, "last_name" = Word.translit)};
我正在尝试做这样的事情 在此处输入图像描述
但结果是这里 输入图像描述