You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 4 Sep 2013 at 3:53The text was updated successfully, but these errors were encountered: