File size: 2,074 Bytes
a6326c7 |
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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
"""
Some constant variables.
Author: md
"""
# The split names
TRAIN_SPLIT = "train"
DEV_SPLIT = "dev"
TEST_SPLIT = "test"
# Universal dialogue format keywords
DIALOG = "dialog"
ROLES = "roles"
TARGET = "target"
SUMMARY = "summary"
KNOWLEDGE = "knowledge"
UTTERANCE = "utterance"
EMOTIONS = "emotions"
EMOTION = "emotion"
VALUE = "value"
ASPECTS = "aspects"
CATEGORY = "category"
OPINION = "opinion"
SENTIMENT = "sentiment"
CHARACTERS = "characters"
START = "start"
END = "end"
BELIEF_STATE = "belief_state"
DOMAIN = "domain"
INFORMED_SLOT_VALUE_TABLE = "informed_slot_value_table"
SLOT = "slot"
VALUES = "values"
RELATION = "relation"
KNOWLEDGE_TO_SELECT = "knowledge_to_select"
SQL = "sql"
SLOT_VALUE_TABLE = "slot_value_table"
SLOTS_TO_FILL = "slots_to_fill"
ROLE_RELATIONS = "role_relations"
REWRITTEN = "rewritten"
ROLES_TO_SELECT = "roles_to_select"
ACTIVE_INTENTS = "active_intents"
# TASK NAMES
DIALOGUE_SUMMARY = "Dialogue Summary"
EMOTION_RECOGNITION = "Emotion Recognition"
DIALOGUE_CONTEXT_TO_RESPONSE_GENERATION = "Dialogue Context-to-Response Generation"
ABSA = "ABSA"
ABSA_TERM_OPINION_SENTIMENT = "ABSA: term opinion sentiment"
ABSA_TERM_CATEGORY_SENTIMENT = "ABSA: term category sentiment"
ABSA_TERM_SENTIMENT = "ABSA: term sentiment"
ABSA_CATEGORY_SENTIMENT = "ABSA: category sentiment"
CHARACTER_IDENTIFICATION = "Character Identification"
DIALOGUE_STATE_TRACKING = "Dialogue State Tracking"
DOCUMENT_GROUNDED_CONVERSATION = "Document Grounded Conversation"
TEXT2SQL = "Text2SQL"
SLOT_FILLING = "Slot Filling"
ROLE_RELATION_RECOGNITION = "Role Relation Recognition"
QUESTION_IN_CONTEXT_REWRITING = "Question in Context Rewriting"
NATURAL_LANGUAGE_INFERENCE = "Natural Language Inference"
MACHINE_READING_COMPREHENSION = "Machine Reading Comprehension"
MULTIPLE_CHOICE_QUESTION_ANSWERING = "Multiple Choice Question Answering"
INTENT_DETECTION = "Intent Detection"
DATA_TO_TEXT = "Data-to-Text"
CHIT_CHAT = "Chit-Chat"
# Seq2Seq
MULTI_REF_SEP = "__multi_ref_sep__"
OPTION_LABEL = "option_label"
CANDIDATES = "candidates"
# MENTION
MENTION = "mention"
|