Lexical Tools

Flow Specific Option - Antonym Negation

  • Description:

    This option is used to filter antonyms by negation in antonym flow components. Its argument can be N1, N2, BN1, BN2, O or combinations of above. The default is set to no restriction on the negation (N1+N2+BN1+BN2+O). This option is set to default value if an invalid argument is used. These arguments are described as follows:

    • N1: restricts the outputs to those antonym-1 (input) are true/strict negative.
      Examples: exclude|include|verb, false|true|adj, lack|plenty|noun, never|always|adv
    • N2: restricts the outputs to those antonym-2 (antonym of input) are true/strict negative.
      Examples:include|exclude|verb, true|false|adj, plenty|lack|noun, always|never|adv
    • BN1: restricts the outputs to those antonym-1 (input) are broadly negative.
      Examples:failure|success|noun, fake|real|adj, rarely|usually|adv, repel|attract|verb
    • NB2: restricts the outputs to those antonym-2 (antonym of input) are broadly negative.
      Examples:success|failure|noun, real|fake|adj, usually|rarely|adv, attract|repel|verb
    • O (otherwise): restricts the outputs to antonyms are not negative.
      Examples:ask|reply|verb, relaxed|upset|adj, slow|quick|adv, student|teacher|noun
    • N1+N2+BN1+BN2+O (all): No restriction on the outputs on negation. All negative (N1, N2, BN1, BN2) and otherwise (O) are displayed. This is the default.

    Negative antonyms can be used as negation detection cue words. For example, unsuccessful, useless, without are negation detection cue words (A sentence is detected as negative if it contains these cue words) from the above table.

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


  • Symbol: kan:STR

  • Examples:
    shell> lvg -f:z -kan:N1+N2+BN1+BN2+O -m
    sad
    sad|cheerful|1|1|z|1|FACT|sad|sad|E0054106|cheerful|E0016272|adj|UB|O|quality|SC|
    sad|glad|1|1|z|1|FACT|sad|sad|E0054106|glad|E0029796|adj|UB|O|quality|SC|
    sad|happy|1|1|z|1|FACT|sad|sad|E0054106|happy|E0030812|adj|UB|O|quality|CC|
    sad|merry|1|1|z|1|FACT|sad|sad|E0054106|merry|E0039644|adj|UB|O|quality|SC|
    
    admit
    admit|deny|1024|1|z|1|FACT|admit|admit|E0007437|deny|E0021749|verb|B|BN2|possibility|SC|
    
    deny
    deny|admit|1024|1|z|1|FACT|deny|deny|E0021749|admit|E0007437|verb|B|BN1|possibility|SC|
    deny|grant|1024|1|z|1|FACT|deny|deny|E0021749|grant|E0030257|verb|UB|BN1|quality|SC|
    
    absent
    absent|present|1|1|z|1|FACT|absent|absent|E0006585|present|E0049839|adj|B|N1|existence|CC|
    
    present
    present|absent|1|1|z|1|FACT|present|present|E0049839|absent|E0006585|adj|B|N2|existence|CC|
    

    shell> lvg -f:z -kan:N1 -n -m
    sad
    sad|-No Output-
    
    admit
    admit|-No Output-
    
    deny
    deny|-No Output-
    
    absent
    absent|present|1|1|z|1|FACT|absent|absent|E0006585|present|E0049839|adj|B|N1|existence|CC
    
    present
    present|-No Output-
    

    shell> lvg -f:z -kan:N1+N2 -n -m
    sad
    sad|-No Output-
    
    admit
    admit|-No Output-
    
    deny
    deny|-No Output-
    
    absent
    absent|present|1|1|z|1|FACT|absent|absent|E0006585|present|E0049839|adj|B|N1|existence|CC
    
    present
    present|absent|1|1|z|1|FACT|present|present|E0049839|absent|E0006585|adj|B|N2|existence|CC|
    
  • Implementation Logic:
    1. Implemented in the LvgFlowSpecificOption, ToSynonyms, and DbSynonym classes.