Hms extends AbstractRegexNPAnnotator<MilitaryPlatform> { public Hms() { super(HMS_PATTERN, 0, 1.0); } Hms(); @Override AnalysisEngineAction getAction();  }
@Test public void testHms() throws Exception { jCas.setDocumentText( "HMS Troutbridge sailed into New York last Friday. H.M.S. Hidden Dragon provided an escort."); process(); assertAnnotations( 2, MilitaryPlatform.class, new TestEntity<>(0, "HMS Troutbridge", "HMS Troutbridge"), new TestEntity<>(1, "H.M.S. Hidden Dragon", "H.M.S. Hidden Dragon")); }