Lexical Tools

Flow Specific Option - Synonym Source Options

  • Description:

    This option is used to filter the synonyms generated in the synonym flows. Its argument can be C, E, N or combination of above, Such as C+E, C+N, E+N, C+E+N. The default option is set to include all three sources (C+E+N). This option is set to the default value if an invalid flag is used.

    A conservative policy is applied for the recursive synonyms. That is synonyms are derived only from the same source (C, E, or N) in the recursive operation. In other words, the combination options (C+E, C+N, E+N, C+E+N) are ignored during the recursive operation.

    These options and their combination are described as follows:

    • C (CUI): restricts the outputs to CUI, which are:
      • English terms in Metathesaurus,
      • not chemical, drugs, etc.
      • have same CUI (concept)
      • base forms in Lexicon
      • have POS of adj, noun, or verb
      • not acronyms or abbreviations
    • E (EUI): restricts the outputs to EUI, which are nominalization and spVars from Lexicon. The EUI of the mapping key synonym is displayed.
    • N (NLP): restricts the outputs to NLP. In 2017 release, NLP option only include original LVG data. In other words, this option is the same as the previous version.
    • C+E (CUI and EUI): restricts the outputs to CUI or EUI.
    • C+N (CUI and NLP): restricts the outputs to CUI or NLP.
    • E+N (EUI and NLP): restricts the outputs to EUI or NLP.
    • C+E+N (all): No restriction on the outputs on synonym sources. This is the default option.


  • Features:
    1. Restrict the output for synonym flows by source.


  • Symbol: kss:STR

  • Examples:
    shell> lvg -f:y -kss:C+E+N -m
    plant
    plant|botanic|1|1|y|1|FACT|plant|plant|noun|botanic|adj|NLP_LVG|
    plant|phytogenous|1|1|y|1|FACT|plant|plant|noun|phytogenous|adj|NLP_LVG|
    plant|plantae|128|1|y|1|FACT|plant|plant|noun|plantae|noun|C0032098|
    plant|planting|128|1|y|1|FACT|plant|plant|verb|planting|noun|E0048176|
    plant|vegetal|1|1|y|1|FACT|plant|plant|noun|vegetal|adj|NLP_LVG|
    plant|viridiplantae|128|1|y|1|FACT|plant|plant|noun|viridiplantae|noun|C0032098|
    
    shell> lvg -f:y -kss:C -m
    plant
    plant|plantae|128|1|y|1|FACT|plant|plant|noun|plantae|noun|C0032098|
    plant|viridiplantae|128|1|y|1|FACT|plant|plant|noun|viridiplantae|noun|C0032098|
    
    shell> lvg -f:y -kss:E -m
    plant
    plant|planting|128|1|y|1|FACT|plant|plant|verb|planting|noun|E0048176|
    
    shell> lvg -f:y -kss:N -m
    plant
    plant|botanic|1|1|y|1|FACT|plant|plant|noun|botanic|adj|NLP_LVG|
    plant|phytogenous|1|1|y|1|FACT|plant|plant|noun|phytogenous|adj|NLP_LVG|
    plant|vegetal|1|1|y|1|FACT|plant|plant|noun|vegetal|adj|NLP_LVG|
    
    shell> lvg -f:y -kss:C+E -m
    plant
    plant|plantae|128|1|y|1|FACT|plant|plant|noun|plantae|noun|C0032098|
    plant|planting|128|1|y|1|FACT|plant|plant|verb|planting|noun|E0048176|
    plant|viridiplantae|128|1|y|1|FACT|plant|plant|noun|viridiplantae|noun|C0032098|
    
    shell> lvg -f:y -kss:C+N -m
    plant
    plant|botanic|1|1|y|1|FACT|plant|plant|noun|botanic|adj|NLP_LVG|
    plant|phytogenous|1|1|y|1|FACT|plant|plant|noun|phytogenous|adj|NLP_LVG|
    plant|plantae|128|1|y|1|FACT|plant|plant|noun|plantae|noun|C0032098|
    plant|vegetal|1|1|y|1|FACT|plant|plant|noun|vegetal|adj|NLP_LVG|
    plant|viridiplantae|128|1|y|1|FACT|plant|plant|noun|viridiplantae|noun|C0032098|
    
    shell> lvg -f:y -kss:E+N -m
    plant
    plant|botanic|1|1|y|1|FACT|plant|plant|noun|botanic|adj|NLP_LVG|
    plant|phytogenous|1|1|y|1|FACT|plant|plant|noun|phytogenous|adj|NLP_LVG|
    plant|planting|128|1|y|1|FACT|plant|plant|verb|planting|noun|E0048176|
    plant|vegetal|1|1|y|1|FACT|plant|plant|noun|vegetal|adj|NLP_LVG|
    

  • Implementation Logic:
    1. Implemented in the LvgFlowSpecificOption and ToSynonyms classes.