BigARTM C++ interface is currently not documented.
The main entry point is MasterModel class from src/artm/cpp_interface.cc.
Please referto src/bigartm//srcmain.cc for usage examples,
and ask questions at bigartm-users
or open a new issue.

Retrieves Theta matrix of a specific topic model.
The resulting message ThetaMatrix will contain information about items distribution across topics.
Remember to set MasterComponentConfig.cache_theta prior to the last iteration in order to gather Theta matrix.

Updates the model with new Phi matrix, defined by topic_model.
This operation can be used to provide an explicit initial approximation of the topic model, or to adjust the model in between iterations.

Depending on the commit flag the change can be applied immediately (commit = true) or queued (commit = false).
The default setting is to use commit = true.
You may want to use commit = false if your model is too big to be updated in a single protobuf message.
In this case you should split your model into parts, each part containing subset of all tokens,
and then submit each part in separate Overwrite operation with commit = false.
After that remember to call MasterComponent::WaitIdle() and Synchronize() to propagate your change.

This operation updates the Phi matrix of the topic model with all model increments, collected since the last call to Synchronize() method.
The weights in the Phi matrix are set according to decay_weight and apply_weight values
(refer to SynchronizeModelArgs.decay_weight for more details).
Depending on invoke_regularizers parameter this operation may also invoke all regularizers.