public class Pts
extends java.lang.Object
History:
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
FindPt(java.lang.String cui,
java.util.Hashtable<java.lang.String,java.lang.String> ptTable)
Find preferred term for a CUI from PT table.
|
static java.util.Hashtable<java.lang.String,java.lang.String> |
GetHashTable(java.lang.String inFile,
boolean verboseFlag,
int lineNum)
Get the the key-value table of CUI|PT by loading from a file.
|
public static java.lang.String FindPt(java.lang.String cui, java.util.Hashtable<java.lang.String,java.lang.String> ptTable)
cui
- the CUI of interestes to find preferred termptTable
- the key-value table of CUI|preferred termpublic static java.util.Hashtable<java.lang.String,java.lang.String> GetHashTable(java.lang.String inFile, boolean verboseFlag, int lineNum)
inFile
- the file includes CUI|PT pairs to be loadedverboseFlag
- verbose flaglineNum
- loading status of line number to be displayed Submit a bug or feature
Copyright © 2015 National Library of Medicine