Configuration Setup
TC Java provides users choices of setting up different options through the configuration file. The default configuration file is ${TC_DIR}/data/config/tc.properties. The variables used in the configuration file are listed in the following table. "Relative path" refers to the path relative to TC top directory, ${ROOT_DIR}.
I. Configuration variables
| Variable Names | Explanations | Variable Values (Default) |
| Directories and files | ||
| ROOT_DIR | the absolute path of the text categorization tool directory |
|
| DATA_DIR | the relative path of TC data directory |
|
| DB_DIR | the relative path of TC database directory |
|
| JD_FILE | the relative path of the Journal Descriptors file |
|
| CONTRACTIONS_FILE | the relative path of the contractions file |
|
| SUB_HEADINGS_FILE | the relative path of the MeShs file |
|
| STOP_WORDS_FILE | the relative path of the stopwords file |
|
| RESTRICT_WORDS_FILE | the relative path of the restrictwords file |
|
| WORD_SIGNAL_WC_DC_FILE | the relative path of word-Signal-wc-dc file |
|
| ST_FILE | the relative path of the Semantic Types file |
|
| ST_JD_FILE | the relative path of the St-Jd table file |
|
| JID_TA_JDS_FILE | the relative path of JID_TA_JDS file |
|
| Database | ||
| DB_DRIVER | JDBC driver |
|
| DB_URL | HSqlDb JDBC URL and connection string |
|
| DB_NAME | database name for Tc |
|
| Other Variables | ||
| NO_OUTPUT_MSG | a string indicating no output |
|
II. Syntax
III. File Location
-x:file_absolute_path
Notes: The tc installation program generates data/config/tc.properties automatically (from data/Config/tc.properties.TEMPLATE) according to options users chose during the installation.