throws ResourceInitializationException
{
switch(dataset)
{
case WikipediaRewriteCorpus:
CollectionReader clough = CollectionReaderFactory.createCollectionReader(
CloughCorpusReader.class,
CloughCorpusReader.PARAM_INPUT_DIR, getDatasetDir(dataset).getAbsolutePath(),
CloughCorpusReader.PARAM_COMBINATION_STRATEGY, CombinationStrategy.SAME_ROW_ONLY.toString());
return clough;
case MeterCorpus:
CollectionReader meter = CollectionReaderFactory.createCollectionReader(
MeterCorpusReader.class,
MeterCorpusReader.PARAM_INPUT_DIR, getDatasetDir(dataset).getAbsolutePath(),
MeterCorpusReader.PARAM_COLLECTION, MeterCorpusReader.MeterCorpusCollection.SINGLE_SOURCE_SUBSET.toString(),
MeterCorpusReader.PARAM_COMBINATION_STRATEGY, CombinationStrategy.SAME_ROW_ONLY.toString());
return meter;
case WebisCrowdParaphraseCorpus:
CollectionReader webis = CollectionReaderFactory.createCollectionReader(
SemEvalCorpusReader.class,
SemEvalCorpusReader.PARAM_INPUT_FILE, getDatasetDir(dataset).getAbsolutePath() + "/webis-cpc.txt",
SemEvalCorpusReader.PARAM_COMBINATION_STRATEGY, CombinationStrategy.SAME_ROW_ONLY.toString());
return webis;
default: