@Test(expected = RuntimeException.class) public void readOverlapFail() throws IOException { BratNameSampleStream stream = createNameSampleWith("overlapping", null); NameSample sample = stream.read(); while (sample != null) { sample = stream.read(); } }
@Override protected List<NameSample> read(BratDocument sample) throws IOException { return parser.parse(sample); }
BratNameSampleStream extends SegmenterObjectStream<BratDocument, NameSample> { @Override protected List<NameSample> read(BratDocument sample) throws IOException { return parser.parse(sample); } }
BratNameSampleStream extends SegmenterObjectStream<BratDocument, NameSample> { @Override protected List<NameSample> read(BratDocument sample) throws IOException { return parser.parse(sample); } BratNameSampleStream(SentenceDetector sentDetector,
                              Tokenizer tokenizer, ObjectStream<BratDocument> samples);  BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel,
                              ObjectStream<BratDocument> samples);  BratNameSampleStream(SentenceDetector sentDetector,
      Tokenizer tokenizer, ObjectStream<BratDocument> samples, Set<String> nameTypes);  BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel,
      ObjectStream<BratDocument> samples, Set<String> nameTypes); }
BratNameSampleStream extends SegmenterObjectStream<BratDocument, NameSample> { @Override protected List<NameSample> read(BratDocument sample) throws IOException { return parser.parse(sample); } BratNameSampleStream(SentenceDetector sentDetector,
                              Tokenizer tokenizer, ObjectStream<BratDocument> samples);  BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel,
                              ObjectStream<BratDocument> samples);  BratNameSampleStream(SentenceDetector sentDetector,
      Tokenizer tokenizer, ObjectStream<BratDocument> samples, Set<String> nameTypes);  BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel,
      ObjectStream<BratDocument> samples, Set<String> nameTypes);  }
BratNameSampleStream extends SegmenterObjectStream<BratDocument, NameSample> { @Override protected List<NameSample> read(BratDocument sample) throws IOException { return parser.parse(sample); } BratNameSampleStream(SentenceDetector sentDetector,
                              Tokenizer tokenizer, ObjectStream<BratDocument> samples);  BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel,
                              ObjectStream<BratDocument> samples);  BratNameSampleStream(SentenceDetector sentDetector,
      Tokenizer tokenizer, ObjectStream<BratDocument> samples, Set<String> nameTypes);  BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel,
      ObjectStream<BratDocument> samples, Set<String> nameTypes);   }