48#include <lal/io/treebank_file_error.hpp>
49#include <lal/io/treebank_reader.hpp>
A reader for a collection of treebanks.
Definition treebank_collection_reader.hpp:91
treebank_reader m_treebank_reader
Object to process a language's treebank.
Definition treebank_collection_reader.hpp:140
treebank_file_error init(const std::string &main_file) noexcept
Initialize the reader with a new collection.
treebank_reader & get_treebank_reader() noexcept
Returns a treebank reader class instance for processing a treebank.
Definition treebank_collection_reader.hpp:119
void step_line() noexcept
Consumes one line of the main file m_main_file.
Definition treebank_collection_reader.hpp:149
bool m_no_more_treebanks
Have all trees in the file been consumed?
Definition treebank_collection_reader.hpp:145
std::ifstream m_list
Handler for main file reading.
Definition treebank_collection_reader.hpp:138
std::string m_cur_treebank_filename
The name of the current treebank file.
Definition treebank_collection_reader.hpp:135
std::string m_main_file
File containing the list of languages and their treebanks.
Definition treebank_collection_reader.hpp:130
bool m_reached_end
Did we reach the end of the file?
Definition treebank_collection_reader.hpp:143
std::string m_cur_treebank_id
The identifier of the current treebank file.
Definition treebank_collection_reader.hpp:133
bool end() const noexcept
Definition treebank_collection_reader.hpp:109
void next_treebank() noexcept
Opens the file of the next treebank in the main file.
Treebank file error report class.
Definition treebank_file_error.hpp:64
A reader for a single treebank file.
Definition treebank_reader.hpp:89
Main namespace of the library.
Definition basic_types.hpp:48