constants.py
604 Bytes
MASK_VALUE = -100
FIRST = 'first'
LAST = 'last'
SEG_BEGIN = 'B'
SEG_INSIDE = 'I'
UPPERCASE = 'X'
LOWERCASE = 'x'
EMPTY = '<EMPTY>'
TOKENS = 'tokens'
SEGS = 'segs'
LEMMAS = 'lemmas'
LEMMA_CASES = 'lemma_cases'
LEMMA_RULES = 'lemma_rules'
TAGS = 'tags'
NONTERMINALS = 'nonterminals'
HEADS = 'heads'
ADJACENCY_MATRIX = 'adjacency_matrix'
DEPRELS = 'deprels'
SPINES = 'spines'
ANCHORS = 'anchors'
ANCHOR_HS = 'anchor_hs'
NE_NONTERMINALS = 'ne_nonterminals'
NE_HEADS = 'ne_heads'
NE_ADJACENCY_MATRIX = 'ne_adjacency_matrix'
NE_SPINES = 'ne_spines'
NE_ANCHORS = 'ne_anchors'
NE_ANCHOR_HS = 'ne_anchor_hs'