jbaiter / kenlm-java

Java SWIG Wrapper around kenlm
GNU Lesser General Public License v3.0
0 stars 2 forks source link

Implement logging #1

Open jbaiter opened 8 years ago

jbaiter commented 8 years ago

The C++ code supports logging to some degree, by writing to a std::ostream that can be configured with the lm::ngram::Config class. It would probably be best to write an adapter in C++ that collects all writes a buffer and then passes that buffer to a Java-callback once flush is called.