Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance handling of parameter lists when creating dimension bundles #36

Open
GoogleCodeExporter opened this issue May 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

When trying to create a dimension bundle with a list of bundles
List<Map<String, Object>> listOfBundles = new ArrayList<Map<String,Object>>();
and calling toArray() on the list
Dimension.createBundle(NAME, listOfBundles.toArray());
an Object[] array is created causing the following exception:
Exception in thread "main" java.lang.ClassCastException: java.util.HashMap 
cannot be cast to java.lang.String
       at de.tudarmstadt.ukp.dkpro.lab.task.impl.DimensionBundle.<init>(DimensionBundle.java:54)
       at de.tudarmstadt.ukp.dkpro.lab.task.Dimension.createBundle(Dimension.java:103)

The lab could check whether the Object[] actually contains the expected 
Map<String, Object> and convert accordingly.

Original issue reported on code.google.com by [email protected] on 4 Sep 2013 at 3:53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants