How to Use Lexicon Tables (Java 8)
I. Introduction More than 14 LRXXX Lexicon tables are generated from Lexical records in the SPECIALIST Lexicon. These tables are used (through database) in Lexical Tools to retrieve lexical variants. On the other hand, these tables can be used directly with scripts or computer programs. This section demonstrates examples of using Java-8 APIs with these tables on bulk data operation for collection.
- Input File
The inflVars.data is one of the most useful Lexicon tables. It is used in the Lexical Tools for 17 (out of 62) flow components to retrieve citation form, inflection variants, base forms, fruitful variants, categories and inflections, spelling variants, etc.. This file includes 6 fields and 1.69 million records for 2014 release. This table is used as the input file for the following examples.
- Collect to Map
- Lexical Tools basic flows - citation, EUI, categories and inflections
- Other Lexical Tools flows - spelling variants, inflectional variants
Java 8 bulk data operation has:
- better performance with parallelism
- better for code maintenance
- smaller size
- readability - control statement
- writability - syntax easy to learn, good for prototype
- better library APIs: client controls what, library controls how
- software design paradigm is changed (OO to OO/functional)