The below code throws the error: Action "typeFromString" is not defined.
CW{-> typeFromString("Person")};
From the documentation, I understand that 'Person' is the name of an annotation that need not be declared already using DECLARE statement and that all CW's will be marked as 'Person'. Please correct me if I'm wrong and let me know how to resolve the above error.
There are two problems:
typeFromString
throws an exception if the type is not defined in the typesystem of the CAS (should be fixed). Short names work if they are unambiguous.CW{-> MARK(typeFromString("Person"))};
.typeFromString
is not an action but a function returing a type.DISCLAIMER: I am a developer of UIMA Ruta