|
""" |
|
Copyright (c) 2023, salesforce.com, inc. |
|
All rights reserved. |
|
SPDX-License-Identifier: Apache License 2.0 |
|
For full license text, see the LICENSE file in the repo root or https://www.apache.org/licenses/LICENSE-2.0 |
|
""" |
|
|
|
|
|
|
|
|
|
|
|
SPEAKER1 = "user" |
|
SPEAKER2 = "system" |
|
ORI_DIAL_ID = "original dialog id" |
|
DIAL_IDX = "dialog index" |
|
ORI_DIAL_INFO = "original dialog info" |
|
TURN_ID = "turn id" |
|
USR_UTT = f"{SPEAKER1} utterance" |
|
SYS_UTT = f"{SPEAKER2} response" |
|
DIAL_HIST = "dialog history" |
|
ORI_USR_ANN = f"original {SPEAKER1} side information" |
|
ORI_SYS_ANN = f"original {SPEAKER2} side information" |
|
LOG = "log" |
|
|
|
|
|
|
|
DOM = "domain" |
|
|
|
INTENT = "intent" |
|
INTENT_SPLIT = " , " |
|
|
|
DST = "dst" |
|
DST_ACC = "dst accumulated" |
|
DST_SPLIT = " , " |
|
|
|
|
|
EK = "external knowledge" |
|
EK_DST = "dst knowledge" |
|
EK_INTENT = "intent knowledge" |
|
|
|
EK_ORI = "external knowledge non-flat" |
|
TOD_EK = "metadata" |
|
TOD_LENGTH = 10 |
|
|
|
INTENT_EK = "intents" |
|
DST_EK = "slots and values" |
|
DST_LENGTH = 10 |
|
|
|
|
|
PROMPT = "prompt" |
|
PROMPT_DST = "prompt for dst task" |
|
PROMPT_INTENT = "prompt for intent prediction" |
|
|
|
MULTIWOZ_DOMAINS = ["taxi", "police", "hospital", "hotel","attraction","train","restaurant"] |
|
|
|
|