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

data.h « cmert-0.5 « training « scripts - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1a17d15c3b1efb4a07c62311e809af6dacbbe4b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef DATA_H
#define DATA_H

typedef struct {
  float *features;
  int *comps;
  float m, b; // slope and intercept, used as scratch space
} candidate_t;

typedef struct {
  candidate_t **sents;
  int sents_n, sents_max, *cands_n;
} data_t;

data_t *read_data(void);

#endif