LexItem Subterm Finder (lsf)
Lsf (LexItem Subterm Finder) applies STMT APIs with a preloaded corpus (Lexicon) to find:
- if the input term is in Lexicon
- the longest prefix subterm in Lexicon
- all prefix subterms in Lexicon
- all subterms in Lexicon
Follow the installation instructions to install and run the lsf program. Check on the following items only if you don't use the provided script to install Sub-Term Mapping Tools.
- CLASSPATH:
- include the STMT distribution jar file, ${STMT_DIR}/lib/stmt${YEAR}dist.jar, in your CLASSPATH.
- include the stmt top directory in your CLASSPATH.
- Configuration File: assign the full path of the top directory of stmt${YEAR} to a variable named ROOT_DIR in the configuration file, data/Config/lsf.properties.
- Lvg Configuration File: set the lvg configuration file (LVG_CONFIG_FILE) to the default (data/Config/lvg.properties) or your installed lvg directory in the lsf configuration file.
- Run java program
Enter the command:
> lsf -p - Please input a term (type "Ctl-d" to quit) > Heart Attack --- In Lexicon: true|E0431577 --- Longest Prefix LexItem Subterm --- heart attack|E0431577 --- Prefix LexItem Subterms --- heart|E0030957 heart attack|E0431577 --- LexItem Subterms --- heart attack|E0431577 heart|E0030957 attack|E0011097|E0011098
where:
- lsf: lsf script to run lsf Java class
- -p: set lsf system option to show prompt (try -h option!)
Free text (a word or term)
Normalized LexItem with EUIs
| Normalized LexItem | EUIs |
|---|
Please refer to design document
