Esempio n. 1
0
  private static Set<String> getMaleNames() {
    if (MALE_NAMES == null) {
      InputStream in = Utils.getMaleNames();
      try {
        MALE_NAMES = Utils.readStringsSet(in);
      } catch (Exception e) {
        throw new RuntimeException(e);
      }
    }

    return MALE_NAMES;
  }
Esempio n. 2
0
  private static Set<String> getStopwords() {
    if (STOPWORDS == null) {
      InputStream in = Utils.getStopwords();
      try {
        // System.out.println("Reading in stopwords");
        STOPWORDS = Utils.readStringsSet(in);
      } catch (Exception e) {
        throw new RuntimeException(e);
      }
    }

    return STOPWORDS;
  }