public void Setup() { using (var file = Tests.OpenFile("opennlp/tools/formats/ad.sample")) { using (var stream = new AdChunkSampleStream(file, Encoding.UTF8, false)) { ChunkSample sample; while ((sample = stream.Read()) != null) { samples.Add(sample); } } } }
public void Setup() { using (var file = Tests.OpenFile("opennlp/tools/formats/ad.sample")) { using (var stream = new AdChunkSampleStream(file, Encoding.UTF8, false)) { ChunkSample sample; while ((sample = stream.Read()) != null) { samples.Add(sample); } } } }