uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Armin.Weg...@bka.bund.de>
Subject AW: HashMap as type feature
Date Thu, 17 Oct 2013 14:33:12 GMT
Dear Richard,

to use StringStringMapEntry, needn't it subclass TOP or FeatureStructure? Is it possible to
store an arbitray object into a CAS?


-----Urspr√ľngliche Nachricht-----
Von: Richard Eckart de Castilho [mailto:rec@apache.org] 
Gesendet: Mittwoch, 16. Oktober 2013 18:02
An: user@uima.apache.org
Betreff: Re: HashMap as type feature


you could define a feature structure e.g.

StringStringMapEntry {
  String key
  String value

and store these in an FSList. Then, write additional convenience code around that which transforms
this to/from a Map<String, String>.

-- Richard

On 16.10.2013, at 17:55, Dr. Armin Wegner <arminwegner@googlemail.com> wrote:

> Hi,
> I'd like to have a type feature that is a list of key-value pairs. The 
> number of pairs is unknown. What's best for this? Is it even possible?
> Thanks,
> Armin

View raw message