Vowpal Wabbit
Functions
parse_slates_example_json.h File Reference
#include "future_compat.h"
#include <rapidjson/document.h>
#include "json_utils.h"

Functions

float get_number (const rapidjson::Value &value)
 
template<bool audit>
void handle_features_value (const char *key_namespace, const Value &value, example *current_example, std::vector< Namespace< audit >> &namespaces, vw &all)
 
template<bool audit>
void parse_context (const Value &context, vw &all, v_array< example * > &examples, VW::example_factory_t example_factory, void *ex_factory_context, std::vector< example * > &slot_examples, std::unordered_map< uint64_t, example * > *dedup_examples=nullptr)
 
template<bool audit>
void parse_slates_example_json (vw &all, v_array< example * > &examples, char *line, size_t, VW::example_factory_t example_factory, void *ex_factory_context, std::unordered_map< uint64_t, example * > *dedup_examples=nullptr)
 
template<bool audit>
void parse_slates_example_dsjson (vw &all, v_array< example * > &examples, char *line, size_t, VW::example_factory_t example_factory, void *ex_factory_context, DecisionServiceInteraction *data, std::unordered_map< uint64_t, example * > *dedup_examples=nullptr)
 

Function Documentation

float get_number ( const rapidjson::Value &  value)
inline
template<bool audit>
void handle_features_value ( const char *  key_namespace,
const Value &  value,
example current_example,
std::vector< Namespace< audit >> &  namespaces,
vw all 
)
template<bool audit>
void parse_context ( const Value &  context,
vw all,
v_array< example * > &  examples,
VW::example_factory_t  example_factory,
void *  ex_factory_context,
std::vector< example * > &  slot_examples,
std::unordered_map< uint64_t, example * > *  dedup_examples = nullptr 
)
template<bool audit>
void parse_slates_example_dsjson ( vw all,
v_array< example * > &  examples,
char *  line,
size_t  ,
VW::example_factory_t  example_factory,
void *  ex_factory_context,
DecisionServiceInteraction data,
std::unordered_map< uint64_t, example * > *  dedup_examples = nullptr 
)
template<bool audit>
void parse_slates_example_json ( vw all,
v_array< example * > &  examples,
char *  line,
size_t  ,
VW::example_factory_t  example_factory,
void *  ex_factory_context,
std::unordered_map< uint64_t, example * > *  dedup_examples = nullptr 
)