Example - Lexical Tools - other flow components

  • Ex9_1_SpVarBase.java
    => find all base forms of all spelling variants of a term
    ----- Program Starts ... 
    ----- GetInflVarList8( ): -----
    --- input file: ../data/inflVars.data
    --- Total lines: 1690181
    ===== Ex9_1_SpVarBase.Test (1) =====
    == input term (resume): resume, resumé, résumé
    -- Time (Java 7 - SpVarBase): 0.555728223
    == input term (resume): resume, resumé, résumé
    -- Time (Java 8 - SpVarBase): 0.801225374
    == input term (resume): resume, resumé, résumé
    -- Time (Java 8 - SpVarBase, parallel): 0.949248003
    ----- Program Ends ...
    

  • Ex9_2_SpVar.java
    => find spelling variants of a term
    ----- Program Starts ... 
    ----- GetInflVarList8( ): -----
    --- input file: ../data/inflVars.data
    --- Total lines: 1690181
    ===== Ex9_2_SpVar.Test (1) =====
    == input term (resume): resumé, résumé
    -- Time (Java 7 - SpVar): 0.822288367
    == input term (resume): resumé, résumé
    -- Time (Java 8 - SpVar): 1.722188431
    == input term (resume): resumé, résumé
    -- Time (Java 8 - SpVar, parallel): 0.195019221
    ----- Program Ends ...
    

  • Ex9_3_InflVar.java
    => find all base forms of all spelling variants of a term
    ----- Program Starts ... 
    ----- GetInflVarList8( ): -----
    --- input file: ../data/inflVars.data
    --- Total lines: 1690181
    ===== Ex9_3_InflVar.Test (1) =====
    == input term (resume):
    resumed|verb|past_part|E0053098
    resumed|verb|past|E0053098
    resumes|noun|plur|E0053099
    resumes|verb|pres(thr_sing)|E0053098
    resume|noun|base|E0053099
    resume|noun|sing|E0053099
    resume|verb|base|E0053098
    resume|verb|infinitive|E0053098
    resume|verb|pres(fst_plur,second,thr_plur)|E0053098
    resuming|verb|pres_part|E0053098
    -- Time (Java 7 - InflVar): 0.672391012
    == input term (resume):
    resumed|verb|past_part|E0053098
    resumed|verb|past|E0053098
    resumes|noun|plur|E0053099
    resumes|verb|pres(thr_sing)|E0053098
    resume|noun|base|E0053099
    resume|noun|sing|E0053099
    resume|verb|base|E0053098
    resume|verb|infinitive|E0053098
    resume|verb|pres(fst_plur,second,thr_plur)|E0053098
    resuming|verb|pres_part|E0053098
    -- Time (Java 8 - InflVar): 1.714796348
    == input term (resume):
    resumed|verb|past_part|E0053098
    resumed|verb|past|E0053098
    resumes|noun|plur|E0053099
    resumes|verb|pres(thr_sing)|E0053098
    resume|noun|base|E0053099
    resume|noun|sing|E0053099
    resume|verb|base|E0053098
    resume|verb|infinitive|E0053098
    resume|verb|pres(fst_plur,second,thr_plur)|E0053098
    resuming|verb|pres_part|E0053098
    -- Time (Java 8 - InflVar, parallel): 0.169176566
    ----- Program Ends ...