blob: 73ffd2987bd2e1eee976c482d20debdc148347fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef _DEP_TRAINING_H_
#define _DEP_TRAINING_H_
#include <string>
#include <vector>
#include "arc_factored.h"
#include "weights.h"
struct TrainingInstance {
TaggedSentence ts;
EdgeSubset tree;
SparseVector<weight_t> features;
// reads a "Jsent" formatted dependency file
static void ReadTraining(const std::string& fname, std::vector<TrainingInstance>* corpus, int rank = 0, int size = 1);
};
#endif
|