48#include <lal/io/treebank_feature.hpp>
69 {
m_what_fs[
static_cast<size_t>(fs) ] =
true; }
75 {
m_what_fs[
static_cast<size_t>(fs) ] =
false; }
122 {
return m_what_fs[
static_cast<size_t>(fs) ]; }
The processor base class.
Definition process_treebank_base.hpp:60
bool has_feature(const treebank_feature &fs) const noexcept
Is a given feature to be calculated?
Definition process_treebank_base.hpp:121
void set_output_header(bool h) noexcept
Output a hedaer for the treebank result file.
Definition process_treebank_base.hpp:112
void set_verbosity(int k) noexcept
Sets the level of verbosity of the process methods.
Definition process_treebank_base.hpp:105
void set_check_before_process(bool v) noexcept
Should the treebank file or collection be checked for errors prior to processing?
Definition process_treebank_base.hpp:80
char m_separator
Character used as separator.
Definition process_treebank_base.hpp:131
void set_separator(char c) noexcept
Sets the separator character.
Definition process_treebank_base.hpp:95
bool m_check_before_process
Process the treebank file or collection prior to processing.
Definition process_treebank_base.hpp:129
std::array< bool, __treebank_feature_size > m_what_fs
The list of features to be computed.
Definition process_treebank_base.hpp:126
void remove_feature(const treebank_feature &fs) noexcept
Removes a feature from the processor.
Definition process_treebank_base.hpp:74
void clear_features() noexcept
Clear the features in the processor.
Definition process_treebank_base.hpp:85
bool m_output_header
Output a header for each file.
Definition process_treebank_base.hpp:133
void add_feature(const treebank_feature &fs) noexcept
Adds a feature to the processor.
Definition process_treebank_base.hpp:68
int m_be_verbose
The verbosity of the processor.
Definition process_treebank_base.hpp:140
treebank_feature
The features that can be computed in automatic processing of treebanks.
Definition treebank_feature.hpp:60
Main namespace of the library.
Definition definitions.hpp:48