Welcome to mirror list, hosted at ThFree Co, Russian Federation.

simple_label.h - github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 525a996f91d3267ee85d877c2429de17b1fef69b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef SL_H
#define SL_H

#include "io.h"
#include "parse_primitives.h"
#include "parser.h"

char* bufread_simple_label(label_data* ld, char* c);
char* bufcache_simple_label(label_data* ld, char* c);

size_t read_cached_simple_label(void* v, io_buf& cache);
void cache_simple_label(void* v, io_buf& cache);
void default_simple_label(void* v);
void parse_simple_label(void* v, v_array<substring>& words);
void delete_simple_label(void* v);
float get_weight(void* v);
const label_parser simple_label = {default_simple_label, parse_simple_label, 
				   cache_simple_label, read_cached_simple_label, 
				   delete_simple_label, get_weight, sizeof(label_data)};

#endif