48#include <lal/io/treebank_error.hpp>
49#include <lal/io/treebank_reader.hpp>
A reader for a collection of treebanks.
Definition treebank_collection_reader.hpp:138
treebank_reader m_treebank_reader
Object to process a language's treebank.
Definition treebank_collection_reader.hpp:187
treebank_reader & get_treebank_reader() noexcept
Returns a treebank reader class instance for processing a treebank.
Definition treebank_collection_reader.hpp:166
void step_line() noexcept
Consumes one line of the main file m_main_file.
Definition treebank_collection_reader.hpp:196
bool m_no_more_treebanks
Have all trees in the file been consumed?
Definition treebank_collection_reader.hpp:192
treebank_error init(const std::string &main_file) noexcept
Initialise the reader with a new collection.
std::ifstream m_list
Handler for main file reading.
Definition treebank_collection_reader.hpp:185
std::string m_cur_treebank_name
The name of the current treebank file.
Definition treebank_collection_reader.hpp:180
std::string m_cur_treebank_filename
The name of the current treebank file.
Definition treebank_collection_reader.hpp:182
std::string m_main_file
File containing the list of languages and their treebanks.
Definition treebank_collection_reader.hpp:177
bool m_reached_end
Did we reach the end of the file?
Definition treebank_collection_reader.hpp:190
bool end() const noexcept
Definition treebank_collection_reader.hpp:156
void next_treebank() noexcept
Opens the file of the next treebank in the main file.
Treebank error report class.
Definition treebank_error.hpp:64
A reader for a single treebank file.
Definition treebank_reader.hpp:113
Main namespace of the library.
Definition definitions.hpp:48