oaqa / uima-ecd

Extended Configuration Description for UIMA pipelines
Apache License 2.0
6 stars 6 forks source link

Class cast exception error when passing parameters to components #8

Closed amaiberg closed 11 years ago

amaiberg commented 12 years ago

Currently when a parameter is passed to a component in the cse descriptor it will cause a class cast exception when the parameter can not be cast to a string (e.g,. when it is a float, double, etc.). We would like to be able to cast such parameters appropriately so that non-string types may be passed as parameters to components.

elmer-garduno commented 11 years ago

We should test float and int parameters for cross-opts.

elmer-garduno commented 11 years ago

It seems not to work with cross-opts, please check the tests on the feature_float_cross_opts branch.

Most of the work that needs to be done is on the following method:

edu.cmu.lti.oaqa.ecd.phase.BasePhase.doLoadOptions(ResourceHandle)