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

Fix hard-coded configurations

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