Configuration Setup
This version of STMT Java provides users choices of different set up options through the configuration file. The default configuration files are at directory of ${STMT_DIR}/data/Config/. They are:
- lsf.properties: used in lsf
- smt.properties: used in smt
- stmt.properties: used in stmt, mt, nt
- lvg.properties: used in lsf, smt, stmt, mt, nt
Please refer to Lexical Tool documents for details.
The variables used in the configuration file are listed in the following table. "Relative path" refers to the path relative to STMT top directory, ${ROOT_DIR}.
I. Configuration variables
| Variable Names | Descriptions | Variable Values |
| STMT Variables | ||
| ROOT_DIR | the absolute path of the installed STMT directory |
|
| SYNONYM_FILE |
|
|
| CORPUS_FILE |
|
|
| LVG_CONFIG_FILE | the absolute path of lvg config file |
|
| VERBOSE_FLAG | a verbose flag to show loading status |
|
| VERBOSE_LINE_NUM | the line number of showing table loading status |
|
| Database Variables | ||
| DB_DRIVER | the JDBC driver |
|
| DB_URL | db URL for JDBC |
|
| DB_DIR | the HSqlDb data directory |
|
| DB_NAME | database name for Stmt |
|
II. Syntax
- comment lines begin with "#".
- variable=value: set value to variable
III. Files
- ${STMT_DIR}/data/Config/lsf.properties
- ${STMT_DIR}/data/Config/smt.properties
- ${STMT_DIR}/data/Config/stmt.properties
- ${STMT_DIR}/data/Config/lvg.properties
Notes: The STMT installation program generates above four configuration files in ${STMT_DIR}/data/Config/ automatically (from ${STMT_DIR}/data/Config/*.properties.TEMPLATE) according to options users chose during the installation.
