我正在尝试 uima ruta 文档中给出的“通过示例学习”。我尝试通过将给定的注释存储为特征值来定义和分配就业关系。但我收到错误消息。我不清楚在那个概念可以详细解释我。
DECLARE Annotation EmplRelation
(Employee employeeRef, Employer employerRef);
Sentence{CONTAINS(EmploymentIndicator) -> CREATE(EmplRelation,"employeeRef" = Employee, "employerRef" = Employer)};
e1:Employer # EmploymentIndicator # e2:Employee) {-> EmplRelation, EmplRelation.employeeRef=e2, EmplRelation.employerRef=e1};