.getResource("opennlp/tools/formats/ad.sample").toURI());
String[] args = { "-data", data.getCanonicalPath(), "-encoding", "UTF-8",
"-lang", "pt", "-detokenizer", dict.getCanonicalPath() };
ObjectStream<TokenSample> tokenSampleStream = factory.create(args);
TokenSample sample = tokenSampleStream.read();
while (sample != null) {
samples.add(sample);
sample = tokenSampleStream.read();
}