TC Java
2011 Version

gov.nih.nlm.nls.tc.Util
Class LexicalTools

java.lang.Object
  extended by gov.nih.nlm.nls.tc.Util.LexicalTools

public class LexicalTools
extends java.lang.Object

This class provides methods of getting lexical variants by using LVG.

History:

Version:
V-2011
Author:
NLM Lexical Systems group

Field Summary
 gov.nih.nlm.nls.lvg.Api.LvgApi lvgApi_
           
 
Constructor Summary
LexicalTools(java.lang.String lvgConfigFile)
           
LexicalTools(java.lang.String lvgConfigFile, java.util.Hashtable<java.lang.String,java.lang.String> properties)
           
 
Method Summary
 void CleanUp()
           
 java.util.Vector<java.lang.String> GetVariants(java.lang.String inStr)
          Find all inflectional variants of the input through LVG.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lvgApi_

public gov.nih.nlm.nls.lvg.Api.LvgApi lvgApi_
Constructor Detail

LexicalTools

public LexicalTools(java.lang.String lvgConfigFile)

LexicalTools

public LexicalTools(java.lang.String lvgConfigFile,
                    java.util.Hashtable<java.lang.String,java.lang.String> properties)
Method Detail

CleanUp

public void CleanUp()

GetVariants

public java.util.Vector<java.lang.String> GetVariants(java.lang.String inStr)
Find all inflectional variants of the input through LVG. Unique, lowercase, sorted.

Parameters:
inStr - the input string
Returns:
variants in a Vector of string.

TC Java
2011 Version

Submit a bug or feature

Copyright © 2011 National Library of Medicine