#include <TextPage.h>
Inheritance diagram for Conjecture::TextPage:
Instances of this class are generated by the 'process' algorithm defined on Page, and are also created from test files for use in training.
We could possibly introduce TextRegion, TextLine, TextWord, and Character classes (and a TextElement superclass) so that there is a one-to-one corresondence between graphical and textual classes, but currently we are exploring a simplier strategy
Internally, a TextPage does emulate the concepts of words (strings) lines (vector<string>), regions (vector<vector<string>>) and page (vector<vector<vector<string>>>).
Public Types | |
typedef std::string | TextWord |
typedef std::vector< TextWord > | TextLine |
typedef std::vector< TextLine > | TextRegion |
Public Member Functions | |
TextPage (const std::string &file) |