You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@opennlp.apache.org by Joern Kottmann <ko...@gmail.com> on 2015/01/29 09:52:58 UTC
Re: svn commit: r1655546 - in /opennlp/trunk/opennlp-tools: pom.xml
src/test/java/opennlp/tools/ngram/
src/test/java/opennlp/tools/ngram/NGramModelTest.java
src/test/resources/opennlp/tools/ngram/
src/test/resources/opennlp/tools/ngram/ngram-model.xml
On Thu, 2015-01-29 at 08:02 +0000, tommaso@apache.org wrote:
> + String modelString = IOUtils.toString(nGramModelStream);
> + String outputString =
> out.toString(Charset.defaultCharset().name());
The XML serialization writes it in UTF-8. Shouldn't you use UTF-8 for
this test too instead of the default encoding?
Jörn