Vowpal Wabbit
parse_example.h
Go to the documentation of this file.
1 /*
2 Copyright (c) by respective owners including Yahoo!, Microsoft, and
3 individual contributors. All rights reserved. Released under a BSD
4 license as described in the file LICENSE.
5  */
6 #pragma once
7 #include <stdint.h>
8 #include "parse_primitives.h"
9 #include "example.h"
10 #include "vw.h"
11 
12 // example processing
13 typedef enum
14 {
18 
20 
21 namespace VW
22 {
24 void read_line(vw& all, example* ex, char* line); // read example from the line.
25 void read_lines(vw* all, char* line, size_t len,
26  v_array<example*>& examples); // read examples from the new line separated strings.
27 
28 } // namespace VW
29 
30 int read_features_string(vw* all, v_array<example*>& examples);
31 size_t read_features(vw* all, char*& line, size_t& num_chars);
void substring_to_example(vw *all, example *ae, substring example)
void read_line(vw &all, example *ex, char *line)
void read_lines(vw *all, char *line, size_t, v_array< example *> &examples)
FeatureInputType
Definition: parse_example.h:13
int read_features_string(vw *all, v_array< example *> &examples)
size_t read_features(vw *all, char *&line, size_t &num_chars)
Definition: autolink.cc:11
example & get_unused_example(vw *all)
Definition: parser.cc:664