File size: 395 Bytes
17f1f54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# coding: utf-8
"""
Shared constants for Sign-IDD model code.
These are the standard special tokens used by the PHOENIX14T vocabulary.
"""

UNK_TOKEN = "<unk>"
PAD_TOKEN = "<pad>"
BOS_TOKEN = "<s>"
EOS_TOKEN = "</s>"

# Pad value for target skeleton sequences (used in loss masking)
TARGET_PAD = 0.0

# Default index for unknown tokens (callable so defaultdict works)
DEFAULT_UNK_ID = lambda: 0