use of io.anserini.index.IndexArgs in project Anserini by castorini.
the class TrecEndToEndExternalStopwordsTest method getIndexArgs.
@Override
protected IndexArgs getIndexArgs() {
IndexArgs indexArgs = createDefaultIndexArgs();
indexArgs.input = "src/test/resources/sample_docs/trec/collection2";
indexArgs.collectionClass = TrecCollection.class.getSimpleName();
indexArgs.stopwords = "src/test/resources/sample_docs/trec/collection2/stopwords.txt";
return indexArgs;
}
use of io.anserini.index.IndexArgs in project Anserini by castorini.
the class PretokenizedIndexEndToEndTest method getIndexArgs.
@Override
IndexArgs getIndexArgs() {
IndexArgs indexArgs = createDefaultIndexArgs();
indexArgs.input = "src/test/resources/sample_docs/json/collection_tokenized";
indexArgs.collectionClass = JsonCollection.class.getSimpleName();
indexArgs.generatorClass = DefaultLuceneDocumentGenerator.class.getSimpleName();
indexArgs.pretokenized = true;
indexArgs.storeRaw = true;
return indexArgs;
}
Aggregations