Configuration Setup

This version of TC Java provides users choices of different set up 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 NamesExplanations Variable Values (Default)
Directories and files
ROOT_DIR the absolute path of the text categorization tool directory
  • AUTO_MODE
  • /Projects/TC/tc2008
  • d:/Projects/TC/tc2008/
  • JD_FILEthe relative path of the Journal Descriptors file
  • data/Jdi/jds.txt
  • CONTRACTIONS_FILEthe relative path of the contractions file
  • data/Jdi/data/Jdi/contractions.txt
  • SUB_HEADINGS_FILEthe relative path of the MeShs file
  • data/Jdi/shs.txt
  • STOP_WORDS_FILEthe relative path of the stopwords file
  • data/Jdi/stopWords.txt
  • RESTRICT_WORDS_FILEthe relative path of the restrictwords file
  • data/Jdi/restrictWordsWSignal.txt
  • WORD_SIGNAL_WC_DC_FILEthe relative path of word-Signal-wc-dc file
  • data/Jdi/wordSignalWcDcGt1.tx
  • ST_FILEthe relative path of the Semantic Types file
  • data/Sti/sts.txt
  • ST_JD_FILEthe relative path of the St-Jd table file
  • data/Stri/stJdTable.txt
  • JID_TA_JDS_FILEthe relative path of JID_TA_JDS file
  • data/Jdi/jidTaJds.txt
  • Database
    DB_DRIVERJDBC driver
  • org.hsqldb.jdbcDrive
  • DB_URLHSqlDb JDBC URL and connection string
  • jdbc:hsqldb:
  • DB_NAMEdatabase name for Tc
  • tc2008
  • Other Variables
    NO_OUTPUT_MSGa string indicating no output
  • -No Score-
  • II. Syntax

    III. File Location

    Notes: The tc installation program generates data/config/tc.properties atumatically (from data/Config/tc.properties.TEMPLATE) accroding to options users chose during the installation.