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
This works:
Map<String, Object> dimReaders = new HashMap<String, Object>();
dimReaders.put(DIM_READER_TRAIN, TwentyNewsgroupsCorpusReader.class);
dimReaders.put(DIM_READER_TRAIN_PARAMS,
Arrays.asList(new Object[] {...,
TwentyNewsgroupsCorpusReader.PARAM_PATTERNS, new String[] { INCLUDE_PREFIX + "*.xml", INCLUDE_PREFIX + "*.xml.gz" } }));
Dimension.createBundle("readers", dimReaders);
This doesn't work:
Map<String, Object> dimReaders = new HashMap<String, Object>();
dimReaders.put(DIM_READER_TRAIN, TwentyNewsgroupsCorpusReader.class);
dimReaders.put(DIM_READER_TRAIN_PARAMS,
Arrays.asList(new Object[] {...,
TwentyNewsgroupsCorpusReader.PARAM_PATTERNS, new String[] { INCLUDE_PREFIX + "*/*.txt" } }));
Dimension.createBundle("readers", dimReaders);
To reproduce: go to
de.tudarmstadt.ukp.dkpro.tc.examples.single.document.TwentyNewsgroupsDemo.java
in the de.tudarmstadt.ukp.dkpro.tc.examples-gpl module of DKPro-TC, and add
"new String[]" to the TwentyNewsgroupsCorpusReader.PARAM_PATTERNS parameter of
the readers. Given the misuse of the PATTERNS parameter, this issue not be a
big deal, but I'm keeping it here for the record.
Original issue reported on code.google.com by [email protected] on 20 May 2014 at 7:15
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 20 May 2014 at 7:15The text was updated successfully, but these errors were encountered: