Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
VW::parsers::csv::csv_parser Class Reference

#include <parse_example_csv.h>

Inheritance diagram for VW::parsers::csv::csv_parser:
VW::details::input_parser

Public Member Functions

 csv_parser (csv_parser_options options)
 
 ~csv_parser () override=default
 
bool next (VW::workspace &all, io_buf &buf, VW::multi_ex &examples) override
 
- Public Member Functions inherited from VW::details::input_parser
 input_parser (std::string name)
 
virtual ~input_parser ()=default
 
virtual bool next (VW::workspace &workspace_instance, io_buf &buffer, VW::multi_ex &output_examples)=0
 
VW::string_view get_name () const
 

Static Public Member Functions

static void set_parse_args (VW::config::option_group_definition &in_options, csv_parser_options &parsed_options)
 
static void handle_parse_args (csv_parser_options &parsed_options)
 

Public Attributes

std::vector< std::string > header_fn
 
std::vector< std::string > header_ns
 
size_t line_num = 0
 
csv_parser_options options
 
VW::v_array< size_t > label_list
 
VW::v_array< size_t > tag_list
 
std::unordered_map< std::string, VW::v_array< size_t > > feature_list
 
std::unordered_map< std::string, float > ns_value
 

Constructor & Destructor Documentation

◆ csv_parser()

VW::parsers::csv::csv_parser::csv_parser ( csv_parser_options  options)
inlineexplicit

◆ ~csv_parser()

VW::parsers::csv::csv_parser::~csv_parser ( )
overridedefault

Member Function Documentation

◆ handle_parse_args()

static void VW::parsers::csv::csv_parser::handle_parse_args ( csv_parser_options parsed_options)
static

◆ next()

bool VW::parsers::csv::csv_parser::next ( VW::workspace all,
io_buf buf,
VW::multi_ex examples 
)
inlineoverridevirtual

◆ set_parse_args()

static void VW::parsers::csv::csv_parser::set_parse_args ( VW::config::option_group_definition in_options,
csv_parser_options parsed_options 
)
static

Member Data Documentation

◆ feature_list

std::unordered_map<std::string, VW::v_array<size_t> > VW::parsers::csv::csv_parser::feature_list

◆ header_fn

std::vector<std::string> VW::parsers::csv::csv_parser::header_fn

◆ header_ns

std::vector<std::string> VW::parsers::csv::csv_parser::header_ns

◆ label_list

VW::v_array<size_t> VW::parsers::csv::csv_parser::label_list

◆ line_num

size_t VW::parsers::csv::csv_parser::line_num = 0

◆ ns_value

std::unordered_map<std::string, float> VW::parsers::csv::csv_parser::ns_value

◆ options

csv_parser_options VW::parsers::csv::csv_parser::options

◆ tag_list

VW::v_array<size_t> VW::parsers::csv::csv_parser::tag_list

The documentation for this class was generated from the following file: