Lexical Tools

Flow Specific Option - Antonym Type

  • Description:

    This option is used to filter antonyms by type in antonym flow components. Its argument can be B, UB, AB1, AB2, NA or combinations of above. The default is set to no restriction on the type (B+UB+AB1+AB2+NA). This option is set to the default value if an invalid argument is used. These arguments are described as follows:

    • B: restricts the outputs to bounded antonyms. Bounded antonyms represent two endpoints on a domain. There is no middle ground for bounded antonyms. In practice, we use the criteria of Ant-1 = not Ant-2 and Ant-2 = not Ant-1 for bounded antonyms.
      Examples: : dead|alive|adj, false|true|adj, closed|open|adj, with|without|prep, asleep|awake|adj, irregularly|regularly|adv, emergency|nonemergency|noun, exclude|include|verb
    • UB: restricts the outputs to unbounded antonyms. Unbounded antonyms are unbounded in the sense that extreme values never reach an endpoint. In practice, we choose the criteria of Ant-1 ≠ not Ant-2 and Ant-2 ≠ not Ant-1 over endpoints if there is a conflict for unbounded antonyms.
      Examples: narrow|wide|adj, light|dark|adj, low|high|noun, sad|happy|adj, rich|poor|adj, careful|careless|adj, first|last|adv, form|destroy|verb
    • AB1: restricts the outputs to asymmetric bounded antonyms with Ant-1 is the negative/endpoint and Ant-2 is not a negative/endpoint. Asymmetric bounded antonyms are pairs with one negative word and/or endpoint on a scale and one non-endpoint/negative word. In practice, we use the criteria of Ant-1 = not Ant-2 and Ant-2 ≠ not Ant-1 for asymmetric bounded type of AB1.
      Examples: bad|good|adj, asleep|alert|adj, bumpless|bumpy|adj, chilly|warm|adj, colorless|colorful|adj, exactly|approximately|adv, silence|noise|noun, disbelieve|believe|verb
    • AB2: restricts the outputs to asymmetric bounded antonyms with Ant-2 is the negative/endpoint and Ant-1 is not a negative-endpoint. In practice, we use the criteria of Ant-2 = not Ant-1 and Ant-1 ≠ not Ant-2 for asymmetric bounded type AB2.
      Examples: good|bad|adj, alert|asleep|adj, bumpy|bumpless|adj, warm|chilly|adj, colorful|colorless|adj, approximately|exactly|adj, noise|silence|noun, believe|disbelieve|verb
    • NA: Not one of above cases. This tag is used in the tagging process for antonym candidates are not a valid canonical antonym pair. It should not exist in the production.
      Examples:
    • B+UB+AB1+AB2+NA (all): No type restriction on the outputs. Antonyms from all types (B, UB, AB1, AB2, NA) are displayed. This is the default.

    Antonym pairs with tags of [B|AB1|AB2] can be used in subterm substitution for concept mapping for better recall and preserve the precision. For example:
    • [B]: not asleep = awake; not awake = asleep
    • [AB1|AB2]: bad = not good; good ≠ not bad


  • Features:
    1. Restrict the type on the output for antonym flows.


  • Symbol: kat:STR

  • Examples:
    shell> lvg -f:z -kat:B+UB+AB1+AB2+NA -m
    happy
    happy|sad|1|1|z|1|FACT|happy|happy|E0030812|sad|E0054106|adj|UB|O|quality|CC|
    happy|unhappy|1|1|z|1|FACT|happy|happy|E0030812|unhappy|E0063156|adj|AB2|O|quality|PD|
    
    accidental
    ccidental|intentional|1|1|z|1|FACT|accidental|accidental|E0006721|intentional|E0034962|adj|AB2|O|quality|CC|
    accidental|nonaccidental|1|1|z|1|FACT|accidental|accidental|E0006721|nonaccidental|E0208392|adj|B|O|quality|PD|
    
    bad
    bad|good|1|1|z|1|FACT|bad|bad|E0011777|good|E0030153|adj|AB1|BN1|quality|CC|
    
    good
    good|bad|1|1|z|1|FACT|good|good|E0030153|bad|E0011777|adj|AB2|BN2|quality|CC|
    good|poor|1|1|z|1|FACT|good|good|E0030153|poor|E0048929|adj|AB2|BN2|quality|CC|
    

    shell> lvg -f:z -kat:B -m -n
    happy
    happy|-No Output
    
    accidental
    accidental|nonaccidental|1|1|z|1|FACT|accidental|accidental|E0006721|nonaccidental|E0208392|adj|B|O|quality|PD|
    
    bad
    bad|-No Output-
    
    good
    good|-No Output-
    

    shell> lvg -f:z -kat:AB2 -m -n
    happy
    happy|unhappy|1|1|z|1|FACT|happy|happy|E0030812|unhappy|E0063156|adj|AB2|O|quality|PD|
    
    accidental
    accidental|intentional|1|1|z|1|FACT|accidental|accidental|E0006721|intentional|E0034962|adj|AB2|O|quality|CC|
    
    bad
    bad|-No Output-
    
    good
    good|bad|1|1|z|1|FACT|good|good|E0030153|bad|E0011777|adj|AB2|BN2|quality|CC|
    good|poor|1|1|z|1|FACT|good|good|E0030153|poor|E0048929|adj|AB2|BN2|quality|CC|
    

    shell> lvg -f:z -kat:B+AB2 -m -n
    happy
    happy|unhappy|1|1|z|1|FACT|happy|happy|E0030812|unhappy|E0063156|adj|AB2|O|quality|PD|
    
    accidental
    accidental|intentional|1|1|z|1|FACT|accidental|accidental|E0006721|intentional|E0034962|adj|AB2|O|quality|CC|
    accidental|nonaccidental|1|1|z|1|FACT|accidental|accidental|E0006721|nonaccidental|E0208392|adj|B|O|quality|PD|
    
    bad
    bad|-No Output-
    
    good
    good|bad|1|1|z|1|FACT|good|good|E0030153|bad|E0011777|adj|AB2|BN2|quality|CC|
    good|poor|1|1|z|1|FACT|good|good|E0030153|poor|E0048929|adj|AB2|BN2|quality|CC|
    
  • Implementation Logic:
    1. Implemented in the LvgFlowSpecificOption, ToSynonyms, and DbSynonym classes.