Sub-Term Mapping Tools
MetaMapPrefix: Package
I. Lib
- ./lib/stmt2013dist.jar (stmt distribution jar file)
II. data
- ./data/Config/lsf.properties, need to update follows:
- ROOT_DIR
- CORPUS_FILE
- LVG_CONFIG_FILE
- DB_NAME
- ./data/HSqlDb/${DB_NAME}
- ./data/tables/normInflvarCorpus.data
III. Java Code
- import stmt.Api classes
import gov.nih.nlm.nls.stmt.Api.LsfApi;
- init lsfApi by config file
String configFile = "/MetaMapPrefix/data/Config/lsf.properties";
LsfApi lsfApi = new LsfApi(configFile);
- Call the API method
Vector prefixes = lsfApi.FindPrefixes(inStr);
the format of prefix is: norm-subterm|EUI-1|EUI-2
- Clean up
lsfApi.CleanUp();
IV. To Run
- classpath must include ./lib/stmt2013dist.jar