Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Duc Cao
source-extractor
Commits
0c1d2437
Commit
0c1d2437
authored
Jan 10, 2019
by
Duc Cao
Browse files
Fix hard-coded configurations
parent
5b49fe8d
Changes
2
Show whitespace changes
Inline
Side-by-side
src/main/java/fr/limsi/sourceExtractor/application/configuration/SourceExtractorConfig.java
View file @
0c1d2437
...
@@ -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
;
}
}
...
...
src/main/resources/config.properties
View file @
0c1d2437
## 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment