opennlp-similarity/src/main/java/opennlp/tools/parse_thicket/matching/PhraseGeneralizer.java [57:84]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
		List<String> pos1 = chunk1.getPOSs();
		List<String> pos2 = chunk2.getPOSs();
		List<String> lem1 = chunk1.getLemmas();
		List<String> lem2 = chunk2.getLemmas();

		List<String> lem1stem = new ArrayList<>();
		List<String> lem2stem = new ArrayList<>();

		for (String word : lem1) {
			try {
				lem1stem.add(ps.stem(word.toLowerCase()).toString());
			} catch (Exception e) {
				// e.printStackTrace();

				if (word.length() > 2)
					System.err.println("Unable to stem: " + word);
			}
		}
		try {
			for (String word : lem2) {
				lem2stem.add(ps.stem(word.toLowerCase()).toString());
			}
		} catch (Exception e) {
			System.err.println("problem processing word " + lem2.toString());
		}

		List<String> overlap = new ArrayList<>(lem1stem);
		overlap.retainAll(lem2stem);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



opennlp-similarity/src/main/java/opennlp/tools/textsimilarity/ParseTreeMatcherDeterministic.java [46:73]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    List<String> pos1 = chunk1.getPOSs();
    List<String> pos2 = chunk2.getPOSs();
    List<String> lem1 = chunk1.getLemmas();
    List<String> lem2 = chunk2.getLemmas();

    List<String> lem1stem = new ArrayList<>();
    List<String> lem2stem = new ArrayList<>();

    for (String word : lem1) {
      try {
        lem1stem.add(ps.stem(word.toLowerCase()).toString());
      } catch (Exception e) {
        // e.printStackTrace();

        if (word.length() > 2)
          System.err.println("Unable to stem: " + word);
      }
    }
    try {
      for (String word : lem2) {
        lem2stem.add(ps.stem(word.toLowerCase()).toString());
      }
    } catch (Exception e) {
      System.err.println("problem processing word " + lem2.toString());
    }

    List<String> overlap = new ArrayList<>(lem1stem);
    overlap.retainAll(lem2stem);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



