/**
   * Create caches of WordNet to speed up matching.
   *
   * @param jwnlPropertiesPath extJWNL properties file path
   * @param adjectiveSynonyms adjective synonyms file path
   * @param adjectiveAntonyms adjective antonyms file path
   * @param nounHypernyms noun hypernyms file path
   * @param nounAntonyms noun antonyms file path
   * @param adverbAntonyms adverb antonyms file path
   * @param verbHypernyms verb hypernyms file path
   * @param nominalizations nominalizations file path
   * @throws SMatchException SMatchException
   */
  public static void createWordNetCaches(
      String jwnlPropertiesPath,
      String adjectiveSynonyms,
      String adjectiveAntonyms,
      String nounHypernyms,
      String nounAntonyms,
      String adverbAntonyms,
      String verbHypernyms,
      String nominalizations)
      throws SMatchException {
    Dictionary dic = WordNet.getDictionary(jwnlPropertiesPath);

    log.info("Creating WordNet caches...");
    convertAndWrite(findNominalizations(dic), nominalizations);
    convertAndWrite(findAdjectiveSynonyms(dic), adjectiveSynonyms);
    convertAndWrite(findAdverbAntonyms(dic), adverbAntonyms);
    convertAndWrite(findAdjectiveAntonyms(dic), adjectiveAntonyms);
    convertAndWrite(findNounAntonyms(dic), nounAntonyms);
    convertAndWrite(findNounHypernyms(dic), nounHypernyms);
    convertAndWrite(findVerbHypernyms(dic), verbHypernyms);
    log.info("Created WordNet caches");
  }