ReferenceTagger { public static String normRefs(final String text) { String updated = CLAIM_REF.matcher(text).replaceAll("Patent-Claim"); updated = PATENT_FIG.matcher(updated).replaceAll("Patent-Figure"); return updated; }  static String markRefs(final String rawText); static String createClaimId(final String text); static String createFigId(final String text); static String normRefs(final String text);  }
@Test public void normRefs() { for (Entry<String, String> entry : text2NormAnno.entrySet()) { String actual = ReferenceTagger.normRefs(entry.getKey()); assertEquals(entry.getValue(), actual); } }