Vowpal Wabbit
|
#include <parser.h>
Public Member Functions | |
parser (size_t ring_size, bool strict_parse_) | |
~parser () | |
Public Attributes | |
v_array< substring > | words |
v_array< substring > | name |
VW::object_pool< example, example_initializer > | example_pool |
VW::ptr_queue< example > | ready_parsed_examples |
io_buf * | input = nullptr |
int(* | reader )(vw *, v_array< example *> &examples) |
void(* | text_reader )(vw *, char *, size_t, v_array< example *> &) |
hash_func_t | hasher |
bool | resettable |
io_buf * | output = nullptr |
bool | write_cache = false |
bool | sort_features = false |
bool | sorted_cache = false |
const size_t | ring_size |
uint64_t | begin_parsed_examples = 0 |
uint64_t | end_parsed_examples = 0 |
uint32_t | in_pass_counter = 0 |
bool | emptylines_separate_examples = false |
std::mutex | output_lock |
std::condition_variable | output_done |
bool | done = false |
v_array< size_t > | gram_mask |
v_array< size_t > | ids |
v_array< size_t > | counts |
size_t | finished_count |
int | label_sock = 0 |
int | bound_sock = 0 |
int | max_fd = 0 |
v_array< substring > | parse_name |
label_parser | lp |
bool | audit = false |
bool | decision_service_json = false |
bool | strict_parse |
std::exception_ptr | exc_ptr |
|
inline |
Definition at line 40 of file parser.h.
References simple_label.
bool parser::audit = false |
Definition at line 104 of file parser.h.
Referenced by enable_sources().
uint64_t parser::begin_parsed_examples = 0 |
Definition at line 81 of file parser.h.
Referenced by VW::clean_example(), VW::get_unused_example(), and VW::new_unused_example().
int parser::bound_sock = 0 |
Definition at line 97 of file parser.h.
Referenced by enable_sources(), and reset_source().
v_array<size_t> parser::counts |
Definition at line 94 of file parser.h.
Referenced by free_parser().
bool parser::decision_service_json = false |
Definition at line 105 of file parser.h.
Referenced by enable_sources(), and parse_line_json().
bool parser::done = false |
Definition at line 90 of file parser.h.
Referenced by lock_done(), and parse_dispatch().
bool parser::emptylines_separate_examples = false |
Definition at line 84 of file parser.h.
Referenced by CSOAA::csldf_setup(), Search::setup(), and VW::setup_example().
uint64_t parser::end_parsed_examples = 0 |
Definition at line 82 of file parser.h.
Referenced by LEARNER::generic_driver_onethread(), VW::import_example(), TC_parser< audit >::parserWarning(), VW::read_example(), VW::setup_example(), and thread_dispatch().
VW::object_pool<example, example_initializer> parser::example_pool |
Definition at line 66 of file parser.h.
Referenced by VW::clean_example(), free_parser(), VW::get_unused_example(), and VW::is_ring_example().
std::exception_ptr parser::exc_ptr |
Definition at line 108 of file parser.h.
Referenced by parse_dispatch().
v_array<size_t> parser::gram_mask |
Definition at line 91 of file parser.h.
Referenced by free_parser(), and generateGrams().
hash_func_t parser::hasher |
Definition at line 73 of file parser.h.
Referenced by VW::are_features_compatible(), VW::hash_feature(), VW::hash_feature_cstr(), VW::hash_space(), TC_parser< audit >::maybeFeature(), TC_parser< audit >::nameSpaceInfo(), and parse_feature_tweaks().
uint32_t parser::in_pass_counter = 0 |
Definition at line 83 of file parser.h.
Referenced by end_pass_example(), parse_dispatch(), and VW::setup_example().
io_buf* parser::input = nullptr |
Definition at line 69 of file parser.h.
Referenced by enable_sources(), finalize_source(), parse_cache(), read_cached_features(), read_features(), reset_source(), and set_compressed().
int parser::label_sock = 0 |
Definition at line 96 of file parser.h.
Referenced by enable_sources().
label_parser parser::lp |
Definition at line 102 of file parser.h.
Referenced by cb_adf_setup(), cb_algs_setup(), cbifyldf_setup(), CCB::ccb_explore_adf_setup(), cs_active_setup(), CSOAA::csldf_setup(), CSOAA::csoaa_setup(), end_pass_example(), DefaultState< audit >::EndObject(), explore_eval_setup(), free_parser(), ezexample::get_new_example(), VW::import_example(), VWReaderHandler< audit >::init(), LEARNER::init_cost_sensitive_learner(), LEARNER::init_multiclass_learner(), lda_setup(), learn(), memory_tree_setup(), ezexample::mini_setup_example(), multilabel_oaa_setup(), mwt_setup(), VW::new_unused_example(), parse_dictionary_argument(), parse_dispatch(), VW::parse_example_label(), read_cached_features(), Search::search::set_label_parser(), VW::cb_explore_adf::softmax::setup(), VW::cb_explore_adf::greedy::setup(), VW::cb_explore_adf::first::setup(), VW::cb_explore_adf::bag::setup(), VW::cb_explore_adf::cover::setup(), VW::cb_explore_adf::regcb::setup(), Search::setup(), VW::setup_example(), LabelObjectState< audit >::StartObject(), MultiState< audit >::StartObject(), SlotsState< audit >::StartObject(), substring_to_example(), and ezexample::train().
int parser::max_fd = 0 |
Definition at line 98 of file parser.h.
Referenced by enable_sources().
Definition at line 64 of file parser.h.
Referenced by free_parser().
io_buf* parser::output = nullptr |
Definition at line 75 of file parser.h.
Referenced by finalize_source(), free_parser(), make_write_cache(), parse_cache(), reset_source(), set_compressed(), and VW::setup_example().
std::condition_variable parser::output_done |
Definition at line 88 of file parser.h.
Referenced by VW::finish_example(), and reset_source().
std::mutex parser::output_lock |
Definition at line 87 of file parser.h.
Referenced by VW::finish_example(), and reset_source().
Definition at line 100 of file parser.h.
Referenced by VW::finish(), MULTILABEL::parse_label(), CB::parse_label(), COST_SENSITIVE::parse_label(), and CCB::parse_label().
Definition at line 70 of file parser.h.
Referenced by enable_sources(), parse_cache(), parse_dispatch(), and reset_source().
VW::ptr_queue<example> parser::ready_parsed_examples |
Definition at line 67 of file parser.h.
Referenced by free_parser(), VW::get_example(), lock_done(), reset_source(), and thread_dispatch().
bool parser::resettable |
Definition at line 74 of file parser.h.
Referenced by enable_sources(), parse_cache(), and reset_source().
const size_t parser::ring_size |
Definition at line 80 of file parser.h.
Referenced by lda_setup(), learn(), receive_result(), and sender_setup().
bool parser::sort_features = false |
Definition at line 77 of file parser.h.
Referenced by parse_example_tweaks(), and VW::setup_example().
bool parser::sorted_cache = false |
Definition at line 78 of file parser.h.
Referenced by enable_sources(), parse_cache(), and read_cached_features().
bool parser::strict_parse |
Definition at line 107 of file parser.h.
Referenced by lda_setup(), and TC_parser< audit >::parserWarning().
Definition at line 71 of file parser.h.
Referenced by enable_sources().
Definition at line 63 of file parser.h.
Referenced by free_parser(), and substring_to_example().
bool parser::write_cache = false |
Definition at line 76 of file parser.h.
Referenced by enable_sources(), make_write_cache(), parse_cache(), reset_source(), and VW::setup_example().