The SPECIALIST Lexicon

Example - Recude

I. Task
Task: find all terms has 4 categories of adj, adv, noun, verb

  • Map records to key-value pairs with key as inflVar and values as distinct categories
  • Filter out those does not has specified 4 categories
  • Print out results (inflVar) - Distinct & sort

II. Notes

  • Java 7 - mutation
  • Java 8 -
    • reduce

III. Java Codes

  • Ex6_Reduce.java
    => find all terms has 4 categories of adj, adv, noun, verb

IV. Results