Lexical Tools

Output Filter Option - Combine Records

  • Description:

    This option combines records of outputs if they have same:

    • o: spelling in output term. This option adds categories and inflections together when combining variants.
    • oc: spelling in output term and categories. This option adds inflections together when combining variants.
    • oe: spelling in output term and EUIs. This option adds categories and inflections together when combining variants. The output must include EUI (used with -m option). This option is particularly used with -f:s -m flow options.
    • oi: spelling in output term and inflections. This option adds categories together when combining variants.


  • Features:
    1. Combines output variants by terms, terms and categories, terms and EUIs, terns and inflections.


  • Symbol: CR: [o] [oc] [oe] [oi]

  • Examples:
    shell> lvg -f:s -CR:o
    color
    color|color|1152|263681|s|1|
    color|colour|1152|263681|s|1|
    
    analyze
    analyze|analyse|1024|263169|s|1|
    analyze|analyze|1024|263169|s|1|
    
    shell> lvg -f:s -CR:oc
    color
    color|color|1|257|s|1|
    color|color|128|513|s|1|
    color|color|1024|263169|s|1|
    color|colour|1|257|s|1|
    color|colour|128|513|s|1|
    color|colour|1024|263169|s|1|
    
    analyze
    analyze|analyse|1024|263169|s|1|
    analyze|analyze|1024|263169|s|1|
    
    shell> lvg -f:s -m -CR:oe
    color
    color|color|128|513|s|1|E0017902|
    color|color|1024|263169|s|1|E0017903|
    color|color|1|257|s|1|E0792256|
    color|colour|128|513|s|1|E0017902|
    color|colour|1024|263169|s|1|E0017903|
    color|colour|1|257|s|1|E0792256|
    
    analyze
    analyze|analyse|1024|263169|s|1|E0008797|
    analyze|analyze|1024|263169|s|1|E0008797|
    
    shell> lvg -f:s -CR:oi
    color
    color|color|1|1|s|1|
    color|color|1|256|s|1|
    color|color|128|1|s|1|
    color|color|128|512|s|1|
    color|color|1024|1|s|1|
    color|color|1024|1024|s|1|
    color|color|1024|262144|s|1|
    color|colour|1|1|s|1|
    color|colour|1|256|s|1|
    color|colour|128|1|s|1|
    color|colour|128|512|s|1|
    color|colour|1024|1|s|1|
    color|colour|1024|1024|s|1|
    color|colour|1024|262144|s|1|
    
    analyze
    analyze|analyse|1024|1|s|1|
    analyze|analyse|1024|1024|s|1|
    analyze|analyse|1024|262144|s|1|
    analyze|analyze|1024|1|s|1|
    analyze|analyze|1024|1024|s|1|
    analyze|analyze|1024|262144|s|1|
    
  • Implementation Logic:
    1. Implemented in the OutputFilter class.