/usr/include/vowpalwabbit/parse_example.h is in libvw-dev 8.5.0.dfsg1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | /*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD
license as described in the file LICENSE.
*/
#pragma once
#include <stdint.h>
#include "parse_primitives.h"
#include "example.h"
#include "vw.h"
//example processing
typedef enum
{ StringFeatures,
JsonFeatures
} FeatureInputType;
void substring_to_example(vw* all, example* ae, substring example);
namespace VW
{
example& get_unused_example(vw* all);
void read_line(vw& all, example* ex, char* line);//read example from the line.
}
int read_features_string(vw* all, v_array<example*>& examples);
size_t read_features(vw* all, char*& line, size_t& num_chars);
|