Lexical Tools

Flow Specific Option - Antonym Source

  • Description:

    This option is used to filter antonyms by source in antonym flow components. Its argument can be LEX, SD, PD, CC, SN or combinations of above. The default is set to no restriction on the source (LEX+SD+PD+CC+SN). This option is set to the default value if an invalid argument is used. These arguments are described as follows:

    • LEX: restricts the outputs to antonyms derived from Lexical records with negative tags.
      Examples: always|never|adv, are|aren’t|aux, can|can’t|modal, either|neither|det, with|without|prep
    • SD: restricts the outputs to antonyms derived from suffix derivations with negation.
      Examples:careful|careless|adj, cheery|cheerless|adj, clawed|claswless|adj
    • PD: restricts the outputs to antonyms derived from prefix derivation with negation.
      Examples:able|unable|adj, regularly|irregularly|adv, smoker|nonsmoker|noun, approve|disapprove|verb
    • CC: restricts the outputs to antonyms derived from collocates in a corpus.
      Examples:rough|smooth|adj, low|high|adv, student|teacher|noun, accept|reject|verb
    • SN: restricts the outputs to antonyms derived from semantic network.
      Examples:quiet|loud|adj, approximately|exactly|adv, wealthy|poor|noun, yell|whisper|verb
    • LEX+SD+PD+CC+SN (all): No source restriction on the outputs. Antonyms from all sources (LEX, SD, PD, CC, SN) are displayed. This is the default.


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


  • Symbol: kas:STR

  • Examples:
    shell> lvg -f:z -kas:LEX+SD+PD+CC+SN -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|
    
    careful
    careful|careless|1|1|z|1|FACT|careful|careful|E0015340|careless|E0015344|adj|UB|O|quality|SD|
    
    cheerful
    cheerful|cheerless|1|1|z|1|FACT|cheerful|cheerful|E0016272|cheerless|E0016276|adj|UB|O|quality|SD|
    cheerful|dreary|1|1|z|1|FACT|cheerful|cheerful|E0016272|dreary|E0023933|adj|UB|O|quality|SN|
    cheerful|gloomy|1|1|z|1|FACT|cheerful|cheerful|E0016272|gloomy|E0029918|adj|UB|O|quality|SN|
    cheerful|sad|1|1|z|1|FACT|cheerful|cheerful|E0016272|sad|E0054106|adj|UB|O|quality|SN|
    

    shell> lvg -f:z -kas:SD -m -n
    happy
    happy|-No Output
    
    careful
    careful|careless|1|1|z|1|FACT|careful|careful|E0015340|careless|E0015344|adj|UB|O|quality|SD|
    
    cheerful
    cheerful|cheerless|1|1|z|1|FACT|cheerful|cheerful|E0016272|cheerless|E0016276|adj|UB|O|quality|SD|
    
    

    shell> lvg -f:z -kas:SN -m -n
    happy
    happy|-No Output-
    
    careful
    careful|-No Output-
    
    cheerful
    cheerful|dreary|1|1|z|1|FACT|cheerful|cheerful|E0016272|dreary|E0023933|adj|UB|O|quality|SN|
    cheerful|gloomy|1|1|z|1|FACT|cheerful|cheerful|E0016272|gloomy|E0029918|adj|UB|O|quality|SN|
    cheerful|sad|1|1|z|1|FACT|cheerful|cheerful|E0016272|sad|E0054106|adj|UB|O|quality|SN|
    

    shell> lvg -f:z -kas:SN+SD -m -n
    happy
    happy|-No Output-
    
    careful
    careful|careless|1|1|z|1|FACT|careful|careful|E0015340|careless|E0015344|adj|UB|O|quality|SD|
    
    cheerful
    cheerful|cheerless|1|1|z|1|FACT|cheerful|cheerful|E0016272|cheerless|E0016276|adj|UB|O|quality|SD|
    cheerful|dreary|1|1|z|1|FACT|cheerful|cheerful|E0016272|dreary|E0023933|adj|UB|O|quality|SN|
    cheerful|gloomy|1|1|z|1|FACT|cheerful|cheerful|E0016272|gloomy|E0029918|adj|UB|O|quality|SN|
    cheerful|sad|1|1|z|1|FACT|cheerful|cheerful|E0016272|sad|E0054106|adj|UB|O|quality|SN|
    
  • Implementation Logic:
    1. Implemented in the LvgFlowSpecificOption, ToSynonyms, and DbSynonym classes.