AW: HashMap as type feature

2013-10-17 Thread Armin.Wegner
Dear Richard, to use StringStringMapEntry, needn't it subclass TOP or FeatureStructure? Is it possible to store an arbitray object into a CAS? Cheers, Armin -Ursprüngliche Nachricht- Von: Richard Eckart de Castilho [mailto:r...@apache.org] Gesendet: Mittwoch, 16. Oktober 2013 18:02

Re: HashMap as type feature

2013-10-17 Thread Richard Eckart de Castilho
TOP or AnnotationBase (which contains view-related code) would be the appropriate types, I believe. It is not possible to store arbitrary objects in the CAS. -- Richard On 17.10.2013, at 16:33, armin.weg...@bka.bund.de wrote: Dear Richard, to use StringStringMapEntry, needn't it subclass

AW: HashMap as type feature

2013-10-17 Thread Armin.Wegner
Hi Thomas, thanks for your answer. Using HashMap, does the n-th element of keySet() always corresponds to the n-th element of values()? Is this a defined behavior in Java? Cheers, Armin -Ursprüngliche Nachricht- Von: Thomas Ginter [mailto:thomas.gin...@utah.edu] Gesendet: Mittwoch,

Re: HashMap as type feature

2013-10-17 Thread Thomas Ginter
Armin, Yes. Extracting the key set results in an array wherein the n-th element of the key array corresponds to the n-th element of the values array. That is part of how the hash map is handled in Java. Even if you implemented your own sorting algorithm for insertion the value would get

XmiCasSerializer error in UIMA-AS

2013-10-17 Thread Prokopis Prokopidis
Hi all, I have an AE that produces the error below when deployed as a UIMA-AS 2.4.0 service. The same AE as part of a UIMA 2.4.2 CPE or a uimafit 2.* pipeline does not produce any errors and works as expected. Among other things, this AE uses ruta rules to process the CAS. When the rules

Re: HashMap as type feature

2013-10-17 Thread Richard Eckart de Castilho
You could also use the entrySet which gives you all the key/value pairs. -- Richard On 17.10.2013, at 16:43, armin.weg...@bka.bund.de wrote: Hi Thomas, thanks for your answer. Using HashMap, does the n-th element of keySet() always corresponds to the n-th element of values()? Is this a

Re: HashMap as type feature

2013-10-17 Thread Dr. Armin Wegner
Looks good, I will try it. Thank you, Armin On 10/17/13, Richard Eckart de Castilho r...@apache.org wrote: You could also use the entrySet which gives you all the key/value pairs. -- Richard On 17.10.2013, at 16:43, armin.weg...@bka.bund.de wrote: Hi Thomas, thanks for your answer.