-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparseutil.h
47 lines (37 loc) · 1.05 KB
/
parseutil.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* File: parseutil.h
* Author: husnusensoy
*
* Created on March 17, 2014, 7:43 PM
*/
#ifndef PARSEUTIL_H
#define PARSEUTIL_H
#include "perceptron.h"
#include "dependency.h"
#include "corpus.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
/**
* @param max_numit Maximum number of iterations to go
* @param max_rec Maximum number of records to be used for training
* @param path ConLL base directory path
* @param train_sections_str Training sections
* @param dev_sections_str Development sections
* @param embedding_dimension Embedding dimension per word
*
* @return Model trained
*/
void* optimize(int max_numit, int max_rec, const char* path, const char* train_sections_str, const char* dev_sections_str, int embedding_dimension);
/**
*
* @param model Abstract perceptron model (Perceptron/KernelPerceptron)
* @param path
* @param test_sections_str
* @param embedding_dimension
*/
void parseall(const void *model, const char* path, const char* test_sections_str, int embedding_dimension);
#endif /* PARSEUTIL_H */