Lexical Tools

Retrieve all fruitful variants from database

  • Short Description: Retrieve all fruitful variants for the input from a database table of pre-computed variants.

  • Full Description:

    Generating the variants via the -f:G flow is a time consuming process. It was found to be useful to pre-compute all the variants of all terms from the Lexicon and have a quick look up into this pre-computed table.

    There is a difference on the result between this flow and -f:G flow. This is because -f:v flow is case insensitive.

    The history notation and distance score are shown below:

    OperationNotationDistance score
    No Operationsn0
    Spelling Variants0
    Inflectional Varianti1
    Synonym y2
    Acronym/AbbreviationA2
    Expansiona2
    Derivational Variantd3

    The -m option shows detail mutate information includes flow history, distance score, and tag information. The tag information is represented by a long value by combining tag bit values. Currently, two bits are defined as listed in following table:

    BitValueTag
    01Noun/Adj only in recursive derivation
    12Unique acronyms/expansion

    Please refer to Tag class for details.

  • Difference:

    The data in the Java version is much more thorough.

  • Features:
    1. Generates all fruitful variants and provides flow history and distance score.


  • Symbol: v

  • Examples:
    
    shell> lvg -f:v -m
    neurological
    neurological|neurological|1|1|v|1|1|1|n|0|3|
    neurological|neuro|1|1|v|1|1|1|n+A|2|1|
    neurological|neurol|1|1|v|1|1|1|n+A|2|1|
    neurological|neurologic|1|1|v|1|1|1|n+y|2|3|
    neurological|neurologically|2|1|v|1|1|1|n+d|3|2|
    neurological|neurology|128|1|v|1|1|1|n+d|3|3|
    neurological|neurologies|128|8|v|1|1|1|n+d+i|4|3|
    neurological|neurologist|128|1|v|1|1|1|n+dd|6|2|
    neurological|neurologists|128|8|v|1|1|1|n+dd+i|7|2|
    neurological|nervous system|128|1|v|1|1|1|n+dd+y|8|2|
    neurological|nervous systems|128|8|v|1|1|1|n+dd+y+i|9|2|
    
    shell> lvg -f:v -CR:o
    neurological
    neurological|nervous system|128|1|v|1|
    neurological|nervous systems|128|8|v|1|
    neurological|neuro|1|1|v|1|
    neurological|neurol|1|1|v|1|
    neurological|neurologic|1|1|v|1|
    neurological|neurological|1|1|v|1|
    neurological|neurologically|2|1|v|1|
    neurological|neurologies|128|8|v|1|
    neurological|neurologist|128|1|v|1|
    neurological|neurologists|128|8|v|1|
    neurological|neurology|128|1|v|1|
    
    More examples

  • Implementation Logic:
    1. Perform a query to get all variants from a database table.

  • Source Code: ToFruitfulVariantsDb.java

  • Hierarchy: Object -> Transformation -> ToFruitfulVariantsDb