Go to the source code of this file.
#define __CLEAR_CNT |
( |
|
prefix | ) |
|
Value:do { \
prefix##la = 0; \
prefix##ra = 0; \
prefix##ls = 0; \
prefix##rs = 0; \
} while (0);
#define __CLEAR_CTX |
( |
|
prefix | ) |
|
Value:do { \
} while (0);
const int kNonePostag
Definition: score_context.h:44
const int kNoneWord
Definition: score_context.h:43
const int kNoneDeprel
Definition: score_context.h:45
#define __SET_CNT |
( |
|
prefix | ) |
|
Value:do { \
prefix##la = item.nr_left_children[prefix]; \
prefix##ra = item.nr_right_children[prefix]; \
prefix##ls =
utils::bin(item.nr_left_descendant[prefix]); \
prefix##rs =
utils::bin(item.nr_right_descendant[prefix]); \
} while (0);
int bin(int x)
Definition: math_utils.cc:6
#define __SET_CTX |
( |
|
prefix | ) |
|
Value:do { \
prefix##w = (item.ref->forms).at(prefix); \
prefix##p = item.postags[prefix]; \
prefix##l = item.deprels[prefix]; \
} while (0);
#define _LEGEAL_RANGE_ |
( |
|
x | ) |
(((x) >= 0) && ((x) < N)) |