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
Hi,
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 MapString, String.
-- Richard
On 16.10.2013, at 17:55, Dr. Armin Wegner
Hi Richard,
thanks for the quick reply. But the answer is a little too short for
me. Can you point me to an example or a documentation, please? I
couldn't find it in the UIMA Tutorial and Developers' Guides. Did I
miss it?
Best,
Armin
On 10/16/13, Richard Eckart de Castilho r...@apache.org
Armin,
Our team does this with an annotation type designed to store feature vectors
for Machine Learning applications. In this case we use a StringArray feature
for the keys and a StringArray feature for the values. The StringArrays are
pulled from a HashMapString, String vector variable and