Commit d9cb82f8 authored by Panagiotis Papadakos's avatar Panagiotis Papadakos
Browse files

[Config] Add options for using the stemmer and stopWords

parent a17c0cea
......@@ -107,6 +107,24 @@ public class Config {
return __PROP__.getProperty("DOCUMENTS_FILENAME");
}
/**
* Returns if we should user the stemmer
*
* @return
*/
public boolean getUseStemmer() {
return Boolean.parseBoolean(__PROP__.getProperty("USE_STEMMER"));
}
/**
* Returns if we should use the stopwords
*
* @return
*/
public boolean getUseStopwords() {
return Boolean.parseBoolean(__PROP__.getProperty("USE_STOPWORDS"));
}
/**
* number of max number of files per each partial index
*
......
# Options for lexical analysis
USE_STEMMER = true
USE_STOPWORDS = true
# Related to partial index
PARTIAL_INDEX_MAX_DOCS_SIZE = 200000
# Related to indices file names
INDEX_PATH = /home/papadako/index/
DATASET_PATH = /home/papadako/dataset
PARTIAL_INDEX_MAX_DOCS_SIZE = 200000
VOCABULARY_FILENAME=vocabulary.idx
POSTINGS_FILENAME=postings.idx
DOCUMENTS_FILENAME=documents.idx
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment