|
Hi - thanks for your previous answers I want to define my own feature type by subtyping uima.cas.String; this feature is called "anyURI", and is meant, well, to store URI (which are strings with special formatting constraints). So I have 1/ the type "anyURI" declared in my type system as a subtype of uima.cas.String and 2/ other features on other types declared with a range of "anyURI". 1. JCasGen does not generate a java class "anyURI" but simply generate getters and setters with strings for the properties having a range of "anyURI". normal ? 2. When I try to set a property with a range of "anyURI", I have the error : (...) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.uima.cas.CASRuntimeException: Error setting string value: string "http://www.mondeca.com#person_0" is not valid for a value of type "com.mondeca.ca.typesystem.anyURI". at org.apache.uima.cas.impl.CASImpl.ll_setStringValue(CASImpl.java:2823) at com.mondeca.ca.typesystem.Entity.setEntityType(Entity.java:108) at com.mondeca.ca.extract.ExampleExtractor.process(ExampleExtractor.java:34) at org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48) at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:371) ... 64 normal ? am I doing something wrong ? Thanks Thomas --
Thomas Francart
Mondeca 3, cité Nollez 75018 Paris France Tel: +33 (0)1 44 92 35 04 - Fax: +33 (0)1 44 92 02 59 Blog: mondeca.wordpress.com Web: www.mondeca.com Mail: [EMAIL PROTECTED] |
- subtyping uima.cas.String Philip Ogren
- Re: subtyping uima.cas.String Philip Ogren
- Re: subtyping uima.cas.String Philip Ogren
- Subtyping uima.cas.String Thomas Francart
- Re: Subtyping uima.cas.String Adam Lally
