A filter in the TBB pipeline. More...
#include <Filter_Writer.h>
Public Member Functions | |
Filter_Writer (Model_Refiner &) | |
virtual | ~Filter_Writer () |
void * | operator() (void *) |
A filter in the TBB pipeline.
Delegates the task to be done to refiner.write()
Filter_Writer::Filter_Writer | ( | Model_Refiner & | refiner | ) |
Filter_Writer::~Filter_Writer | ( | ) | [virtual] |
void * Filter_Writer::operator() | ( | void * | token | ) |
We receive the document to write to disk. This contains both words & their topic assignments. We use write_topics() to only write the topics which internally clears the words.