Vowpal Wabbit
Loading...
Searching...
No Matches
Namespaces | Classes | Functions
VW::parsers::json Namespace Reference

Namespaces

namespace  details
 

Classes

class  decision_service_interaction
 

Functions

template<bool audit>
void read_line_json (const VW::label_parser &lbl_parser, hash_func_t hash_func, uint64_t hash_seed, uint64_t parse_mask, bool chain_hash, VW::label_parser_reuse_mem *reuse_mem, const VW::named_labels *ldict, VW::multi_ex &examples, char *line, size_t length, example_factory_t example_factory, VW::io::logger &logger, std::unordered_map< std::string, std::set< std::string > > *ignore_features, const std::unordered_map< uint64_t, VW::example * > *dedup_examples=nullptr)
 
template<bool audit>
void read_line_json (VW::workspace &all, VW::multi_ex &examples, char *line, size_t length, example_factory_t example_factory, const std::unordered_map< uint64_t, VW::example * > *dedup_examples=nullptr)
 
template<bool audit>
bool read_line_decision_service_json (VW::workspace &all, VW::multi_ex &examples, char *line, size_t length, bool copy_line, example_factory_t example_factory, VW::parsers::json::decision_service_interaction *data)
 
template<bool audit>
void line_to_examples_json (VW::workspace *all, VW::string_view sv, VW::multi_ex &examples)
 
template<bool audit>
int read_features_json (VW::workspace *all, io_buf &buf, VW::multi_ex &examples)
 
template void read_line_json< true > (const VW::label_parser &lbl_parser, hash_func_t hash_func, uint64_t hash_seed, uint64_t parse_mask, bool chain_hash, VW::label_parser_reuse_mem *reuse_mem, const VW::named_labels *ldict, VW::multi_ex &examples, char *line, size_t length, example_factory_t example_factory, VW::io::logger &logger, std::unordered_map< std::string, std::set< std::string > > *ignore_features, const std::unordered_map< uint64_t, VW::example * > *dedup_examples)
 
template void read_line_json< false > (const VW::label_parser &lbl_parser, hash_func_t hash_func, uint64_t hash_seed, uint64_t parse_mask, bool chain_hash, VW::label_parser_reuse_mem *reuse_mem, const VW::named_labels *ldict, VW::multi_ex &examples, char *line, size_t length, example_factory_t example_factory, VW::io::logger &logger, std::unordered_map< std::string, std::set< std::string > > *ignore_features, const std::unordered_map< uint64_t, VW::example * > *dedup_examples)
 
template void read_line_json< true > (VW::workspace &all, VW::multi_ex &examples, char *line, size_t length, example_factory_t example_factory, const std::unordered_map< uint64_t, VW::example * > *dedup_examples)
 
template void read_line_json< false > (VW::workspace &all, VW::multi_ex &examples, char *line, size_t length, example_factory_t example_factory, const std::unordered_map< uint64_t, VW::example * > *dedup_examples)
 
template bool read_line_decision_service_json< true > (VW::workspace &all, VW::multi_ex &examples, char *line, size_t length, bool copy_line, example_factory_t example_factory, VW::parsers::json::decision_service_interaction *data)
 
template bool read_line_decision_service_json< false > (VW::workspace &all, VW::multi_ex &examples, char *line, size_t length, bool copy_line, example_factory_t example_factory, VW::parsers::json::decision_service_interaction *data)
 
template void line_to_examples_json< true > (VW::workspace *all, VW::string_view, VW::multi_ex &examples)
 
template void line_to_examples_json< false > (VW::workspace *all, VW::string_view, VW::multi_ex &examples)
 
template int read_features_json< true > (VW::workspace *all, io_buf &buf, VW::multi_ex &examples)
 
template int read_features_json< false > (VW::workspace *all, io_buf &buf, VW::multi_ex &examples)
 

Function Documentation

◆ line_to_examples_json()

template<bool audit>
void VW::parsers::json::line_to_examples_json ( VW::workspace all,
VW::string_view  sv,
VW::multi_ex examples 
)

◆ line_to_examples_json< false >()

template void VW::parsers::json::line_to_examples_json< false > ( VW::workspace all,
VW::string_view  ,
VW::multi_ex examples 
)

◆ line_to_examples_json< true >()

template void VW::parsers::json::line_to_examples_json< true > ( VW::workspace all,
VW::string_view  ,
VW::multi_ex examples 
)

◆ read_features_json()

template<bool audit>
int VW::parsers::json::read_features_json ( VW::workspace all,
io_buf buf,
VW::multi_ex examples 
)

◆ read_features_json< false >()

template int VW::parsers::json::read_features_json< false > ( VW::workspace all,
io_buf buf,
VW::multi_ex examples 
)

◆ read_features_json< true >()

template int VW::parsers::json::read_features_json< true > ( VW::workspace all,
io_buf buf,
VW::multi_ex examples 
)

◆ read_line_decision_service_json()

template<bool audit>
bool VW::parsers::json::read_line_decision_service_json ( VW::workspace all,
VW::multi_ex examples,
char *  line,
size_t  length,
bool  copy_line,
example_factory_t  example_factory,
VW::parsers::json::decision_service_interaction data 
)

◆ read_line_decision_service_json< false >()

template bool VW::parsers::json::read_line_decision_service_json< false > ( VW::workspace all,
VW::multi_ex examples,
char *  line,
size_t  length,
bool  copy_line,
example_factory_t  example_factory,
VW::parsers::json::decision_service_interaction data 
)

◆ read_line_decision_service_json< true >()

template bool VW::parsers::json::read_line_decision_service_json< true > ( VW::workspace all,
VW::multi_ex examples,
char *  line,
size_t  length,
bool  copy_line,
example_factory_t  example_factory,
VW::parsers::json::decision_service_interaction data 
)

◆ read_line_json() [1/2]

template<bool audit>
void VW::parsers::json::read_line_json ( const VW::label_parser lbl_parser,
hash_func_t  hash_func,
uint64_t  hash_seed,
uint64_t  parse_mask,
bool  chain_hash,
VW::label_parser_reuse_mem reuse_mem,
const VW::named_labels ldict,
VW::multi_ex examples,
char *  line,
size_t  length,
example_factory_t  example_factory,
VW::io::logger logger,
std::unordered_map< std::string, std::set< std::string > > *  ignore_features,
const std::unordered_map< uint64_t, VW::example * > *  dedup_examples = nullptr 
)

◆ read_line_json() [2/2]

template<bool audit>
void VW::parsers::json::read_line_json ( VW::workspace all,
VW::multi_ex examples,
char *  line,
size_t  length,
example_factory_t  example_factory,
const std::unordered_map< uint64_t, VW::example * > *  dedup_examples = nullptr 
)

◆ read_line_json< false >() [1/2]

template void VW::parsers::json::read_line_json< false > ( const VW::label_parser lbl_parser,
hash_func_t  hash_func,
uint64_t  hash_seed,
uint64_t  parse_mask,
bool  chain_hash,
VW::label_parser_reuse_mem reuse_mem,
const VW::named_labels ldict,
VW::multi_ex examples,
char *  line,
size_t  length,
example_factory_t  example_factory,
VW::io::logger logger,
std::unordered_map< std::string, std::set< std::string > > *  ignore_features,
const std::unordered_map< uint64_t, VW::example * > *  dedup_examples 
)

◆ read_line_json< false >() [2/2]

template void VW::parsers::json::read_line_json< false > ( VW::workspace all,
VW::multi_ex examples,
char *  line,
size_t  length,
example_factory_t  example_factory,
const std::unordered_map< uint64_t, VW::example * > *  dedup_examples 
)

◆ read_line_json< true >() [1/2]

template void VW::parsers::json::read_line_json< true > ( const VW::label_parser lbl_parser,
hash_func_t  hash_func,
uint64_t  hash_seed,
uint64_t  parse_mask,
bool  chain_hash,
VW::label_parser_reuse_mem reuse_mem,
const VW::named_labels ldict,
VW::multi_ex examples,
char *  line,
size_t  length,
example_factory_t  example_factory,
VW::io::logger logger,
std::unordered_map< std::string, std::set< std::string > > *  ignore_features,
const std::unordered_map< uint64_t, VW::example * > *  dedup_examples 
)

◆ read_line_json< true >() [2/2]

template void VW::parsers::json::read_line_json< true > ( VW::workspace all,
VW::multi_ex examples,
char *  line,
size_t  length,
example_factory_t  example_factory,
const std::unordered_map< uint64_t, VW::example * > *  dedup_examples 
)