Manual Installation Instructions



Introduction

This page shows what the Lexical Tools installation script does. A manual installation can be performed to replace the installation script. It is not recommended for general users to install the Lexical Tools manually. Please refer to installation instructions for installing the Lexical Tools.

Prerequisites

Install

  1. Create a new directory for the Lexical tool on your machine.
  2. Download the zip archive: lvg2012.tgz, and place it in the newly created directory. "2012" is the version identification (year).
  3. Uncompress or Unzip the archive. Be careful to use a version of unzip that allows long filenames and that will recreate the full directory structure.

    You should now have five files and nine sub-directories under lvg2012, as shown in follows:

    • build.xml
    • overview.html
    • ReadMe.txt
    • SPECIALIST_NLP_TOOLS_TERMS_AND_CONDITIONS.txt

    • /bin
    • /data
    • /docs
    • /examples
    • /install
    • /lib
    • /loadDb
    • /logs
    • /sources

Please refer to Repository Lists for details.

Setup

I. JRE/Java

II. Command Line scripts:
Manually modify shell scripts, fields, lgt, luiNorm, lvg, norm, toAscii, and wordInd, under ${LVG_DIR}/bin/ as follows:

VariableValueExample
JAVAThe JRE/bin/java you will use JAVA=/Projects/lvg2012/bin/jre1.6.0_26/bin/java
LVG_DIRThe full path of the top directory of lvg2012 LVG_DIR=/Projects/lvg2012
CLASSPATHIncludes:
  • lib/lvg2012dist.jar
    => lvg2012dist.jar includes classes of norm, luiNorm, lvg, wordInd, toAscii, lgt, all lvg API classes, jdbc driver of HSqlDb, and IBM icu4j.jar library
  • ${LVG_DIR}, the full path of the top directory of lvg2012
    => this allows lvg to find the default configuration file, data/config/lvg.properties
  • CLASSPATH=${LVG_DIR}:${LVG_DIR}/lib/lvg2012dist.jar

    III. Configuration file:
    Manually modify configuration file, ${LVG_DIR}/data/config/lvg.properties, as follows:

    VariableValueExample
    LVG_DIRThe full path of the top directory of lvg2012 LVG_DIR=/Projects/lvg2012

    Make sure values of database variables are setup appropriately in the configuration file, see configuration setup for details

    Now you are ready for running norm, luiNorm, wordInd, toAscii, lvg, fields, and lgt.