Lexical Tools

Flow Specific Option - Derivation Type

  • Description:

    This option is used to filter derivations by type in derivational morphology flows. Its argument can be Z, S, P or combinations of above. The default is set to no restriction on the type (Z+S+P). This option is set to its default value if an invalid argument is used. These arguments are described as follows:

    • Z (zeroD): restricts the outputs to zero derivations of the input.
    • S (suffixD): restricts the outputs to suffix derivations of the input.
    • P (prefixD): restricts the outputs to prefix derivations of the input.
    • Z+S (zeroD or suffixD): restricts the outputs to zero or suffix derivations of the input. This is one of the most used options with query expansion for CUI mapping.
    • Z+P (zeroD or prefixD): restricts the outputs to zero or prefix derivations of the input.
    • S+P (suffixD or prefixD): restricts the outputs to suffix or prefix derivations of the input.
    • Z+S+P (all): No restriction on the outputs on derivation type. All zeroD (Z), suffixD (S), and prefixD (P) are displayed. This is the default option.


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


  • Symbol: kdt:STR

  • Examples:
    shell> lvg -f:d -kdn:N+O -kdt:Z+S+P -m
    kind
    kind|kindly|2|1|d|1|FACT|kind|1|E0036524|kindly|2|E0036530|S|O|None|
    kind|kindness|128|1|d|1|FACT|kind|1|E0036524|kindness|128|E0036531|S|O|None|
    kind|kind|128|1|d|1|FACT|kind|1|E0036524|kind|128|E0036525|Z|O|None|
    kind|in-kind|1|1|d|1|FACT|kind|128|E0036525|in-kind|1|E0555638|P|O|in-|
    kind|unkind|1|1|d|1|FACT|kind|1|E0036524|unkind|1|E0538045|P|N|un|
    kind|kind|1|1|d|1|FACT|kind|128|E0036525|kind|1|E0036524|Z|O|None|
    

    shell> lvg -f:d -kdn:N+O -kdt:Z -m
    kind
    kind|kind|128|1|d|1|FACT|kind|1|E0036524|kind|128|E0036525|Z|O|None|
    kind|kind|1|1|d|1|FACT|kind|128|E0036525|kind|1|E0036524|Z|O|None|
    

    shell> lvg -f:d -kdn:N+O -kdt:S -m
    kind
    kind|kindly|2|1|d|1|FACT|kind|1|E0036524|kindly|2|E0036530|S|O|None|
    kind|kindness|128|1|d|1|FACT|kind|1|E0036524|kindness|128|E0036531|S|O|None|
    

    shell> lvg -f:d -kdn:N+O -kdt:P -m
    kind
    kind|in-kind|1|1|d|1|FACT|kind|128|E0036525|in-kind|1|E0555638|P|O|in-|
    kind|unkind|1|1|d|1|FACT|kind|1|E0036524|unkind|1|E0538045|P|N|un|
    

    shell> lvg -f:d -kdn:N+O -kdt:Z+S -m
    kind
    kind|kindly|2|1|d|1|FACT|kind|1|E0036524|kindly|2|E0036530|S|O|None|
    kind|kindness|128|1|d|1|FACT|kind|1|E0036524|kindness|128|E0036531|S|O|None|
    kind|kind|128|1|d|1|FACT|kind|1|E0036524|kind|128|E0036525|Z|O|None|
    kind|kind|1|1|d|1|FACT|kind|128|E0036525|kind|1|E0036524|Z|O|None|
    
  • Implementation Logic:
    1. Implemented in the LvgFlowSpecificOption, ToDerivation, and DbDerivation classes.