Commit 0c1d2437 authored by Duc Cao's avatar Duc Cao

Fix hard-coded configurations

parent 5b49fe8d
......@@ -104,9 +104,9 @@ public class SourceExtractorConfig {
public SourceExtractorConfig(File dataDir, File dirLib, File dirResources) {
this();
this.DATA_DIR = dataDir;
this.DIR_LIB = dirLib;
this.DIR_RESOURCES = dirResources;
this.DATA_DIR = new File(dataDir.getAbsolutePath());
this.DIR_LIB = new File(dirLib.getAbsolutePath());
this.DIR_RESOURCES = new File(dirResources.getAbsolutePath());
}
public void trainedConfig() {
......@@ -362,6 +362,10 @@ public class SourceExtractorConfig {
public Paths getPaths() {
return paths;
}
public File getDirLib() {
return DIR_LIB;
}
public Memory getMemory() {
return memory;
......
## Directory containing the librairies and models
LIB_DIR=/Users/bertrand/git/code/Limsi-SourceExtractor/lib
LIB_DIR=lib
## Directory containing the language-dependent resources
RESOURCES_DIR=/Users/bertrand/git/code//Limsi-SourceExtractor/resources
RESOURCES_DIR=resources
## DATA_DIR should only be set correctly for training the models
## The directory is useless in production mode
DATA_DIR=/home/xtannier/Recherche/SourceExtractor/data
DATA_DIR=data
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