Sub-Term Mapping Tools

STMT Java Class Mapping

STMT provides three Java classes for table lookup mapping:

  • SetTable.java
    • Store terms from a file in a Java HashSet<String>
    • The format of input file:
      terms
    • Automatically remove duplicate terms
    • Use to check if a term is in this table
    • Application: use to check if a CUI|LUI|SUI is in non-suppress list
    • File: nonSuppressCui.data

  • KeyValueTable.java
    • Store key|value pairs from a file to a Java Hashtable<String, String>
      keyvalue
    • Automatically remove duplicate key|value pairs
    • Use in one-to-one mapping to find the value for a term (key)
    • Application: use to find the preferred term for a CUI
    • File: cuiPreferredTerm.data

  • KeyValuesTable.java
    • Store key|value pairs from a file to a Java Hashtable<String, HashSet< String>>
      keyvalue
    • Automatically remove duplicate key|value pairs
    • Use in one-to-many mapping to find values for a term (key)
    • Application: use to find CUI, EUI, Synonyms for a term
    • Files:
      • normTermCui.data
      • normInflvarEui.data
      • normTermSynonyms.data

These Java classes provide an easy way to store data in RAM for retrieval. Accordingly, the performance is low when data is large scale. In real practice, STMT stores information in database for small foot print and fast performance.