opennlp-similarity/src/main/java/opennlp/tools/similarity/apps/StoryDiscourseNavigator.java [132:147]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
		List<List<String>> res = new ArrayList<>();
		for (List<ParseTreeChunk> chunks : matchList) {
			List<String> wordRes = new ArrayList<>();
			for (ParseTreeChunk ch : chunks) {
				List<String> lemmas = ch.getLemmas();
				for (int w = 0; w < lemmas.size(); w++)
					if ((!lemmas.get(w).equals("*"))
							&& ((ch.getPOSs().get(w).startsWith("NN") || ch.getPOSs().get(w)
									.startsWith("VB"))) && lemmas.get(w).length() > 2) {
						String formedWord = lemmas.get(w);
						String stemmedFormedWord = ps.stem(formedWord).toString();
						if (!stemmedFormedWord.startsWith("invalid"))
							wordRes.add(formedWord);
					}
			}
			wordRes = new ArrayList<>(new HashSet<>(wordRes));
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



opennlp-similarity/src/main/java/opennlp/tools/similarity/apps/taxo_builder/TaxonomyExtenderViaMebMining.java [77:92]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    List<List<String>> res = new ArrayList<>();
    for (List<ParseTreeChunk> chunks : matchList) {
      List<String> wordRes = new ArrayList<>();
      for (ParseTreeChunk ch : chunks) {
        List<String> lemmas = ch.getLemmas();
        for (int w = 0; w < lemmas.size(); w++)
          if ((!lemmas.get(w).equals("*"))
              && ((ch.getPOSs().get(w).startsWith("NN") || ch.getPOSs().get(w)
                  .startsWith("VB"))) && lemmas.get(w).length() > 2) {
            String formedWord = lemmas.get(w);
            String stemmedFormedWord = ps.stem(formedWord).toString();
            if (!stemmedFormedWord.startsWith("invalid"))
              wordRes.add(formedWord);
          }
      }
      wordRes = new ArrayList<>(new HashSet<>(wordRes));
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



