List of usage examples for opennlp.tools.util Span startsWith
public boolean startsWith(Span s)
From source file:opennlp.tools.util.Span.java
/** * Test for {@link Span#startsWith(Span)}. *//*from w ww. jav a 2 s . c o m*/ public void testStartsWith() { Span a = new Span(10, 50); Span b = new Span(10, 12); Assert.assertTrue(a.startsWith(a)); Assert.assertTrue(a.startsWith(b)); Assert.assertFalse(b.startsWith(a)); }