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.
The C++ code supports logging to some degree, by writing to a
std::ostream
that can be configured with thelm::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 onceflush
is called.