52#include <lal/io/treebank_error.hpp>
53#include <lal/io/process_treebank_base.hpp>
116 const std::string& treebank_input_file,
117 const std::string& output_file,
118 const std::string& treebank_id =
""
143 template<class TREE, class OUT_STREAM>
145 (const TREE& rT,
double *props,
char *prop_set, OUT_STREAM& out_lab_file)
151 template<class OUT_STREAM>
153 (OUT_STREAM& out_lab_file)
157 template<class OUT_STREAM>
159 (OUT_STREAM& out_lab_file)
165 template<class TREE_TYPE, class OUT_STREAM>
167 (TREE_TYPE& t, OUT_STREAM& out_lab_file)
171 template<class TREE_TYPE, class OUT_STREAM>
173 (const TREE_TYPE& t, OUT_STREAM& out_lab_file)
198 const std::
string& treebank_file,
199 const std::
string& output_file
204 auto err = tbproc.
init(treebank_file, output_file);
The processor base class.
Definition process_treebank_base.hpp:60
Treebank error report class.
Definition treebank_error.hpp:64
Automatic processing of treebank files.
Definition treebank_processor.hpp:102
std::string m_treebank_filename
File containing the list of languages and their treebanks.
Definition treebank_processor.hpp:178
std::string m_treebank_id
Treebank identifier.
Definition treebank_processor.hpp:182
void output_syndepstruct_type_values(const TREE_TYPE &t, OUT_STREAM &out_lab_file) const noexcept
Output the values for the syntactic dependency tree types.
void output_tree_type_values(TREE_TYPE &t, OUT_STREAM &out_lab_file) const noexcept
Output the values for the tree types.
void process_tree(const TREE &rT, double *props, char *prop_set, OUT_STREAM &out_lab_file) const noexcept
Process a single tree in a treebank.
treebank_error process() noexcept
Process the treebank file.
void output_tree_type_header(OUT_STREAM &out_lab_file) const noexcept
Output the header for the tree types.
void output_syndepstruct_type_header(OUT_STREAM &out_lab_file) const noexcept
Output the header for the tree types.
treebank_error init(const std::string &treebank_input_file, const std::string &output_file, const std::string &treebank_id="") noexcept
Initialise the processor with a new collection.
std::string m_output_file
Output directory.
Definition treebank_processor.hpp:180
@ no_error
No error occurred.
treebank_error process_treebank(const std::string &treebank_file, const std::string &output_file) noexcept
Automatically process a treebank.
Definition treebank_processor.hpp:197
Main namespace of the library.
Definition definitions.hpp:48