NameSample { public static NameSample parse(String taggedTokens, boolean isClearAdaptiveData) throws IOException { return parse(taggedTokens, DEFAULT_TYPE, isClearAdaptiveData); } NameSample(String[] sentence, Span[] names,
      String[][] additionalContext, boolean clearAdaptiveData);  NameSample(String[] sentence, Span[] names, boolean clearAdaptiveData); String[] getSentence(); Span[] getNames(); String[][] getAdditionalContext(); boolean isClearAdaptiveDataSet(); @Override boolean equals(Object obj); @Override String toString(); static NameSample parse(String taggedTokens,
      boolean isClearAdaptiveData); static NameSample parse(String taggedTokens, String defaultType,
      boolean isClearAdaptiveData); static final String DEFAULT_TYPE; }
@Test(expected=IOException.class) public void testMissingType() throws Exception { NameSample.parse("<START:> token <END>", false); }
@Test(expected=IOException.class) public void testTypeWithSpace() throws Exception { NameSample.parse("<START:abc a> token <END>", false); }
@Test(expected=IOException.class) public void testTypeWithNewLine() throws Exception { NameSample.parse("<START:abc\na> token <END>", false); }
@Test(expected=IOException.class) public void testTypeWithInvalidChar1() throws Exception { NameSample.parse("<START:abc:a> token <END>", false); }
@Test(expected=IOException.class) public void testTypeWithInvalidChar2() throws Exception { NameSample.parse("<START:abc>a> token <END>", false); }