Skip to content
Snippets Groups Projects
Commit 88d8469e authored by Christian's avatar Christian
Browse files

new version where actions are composed of tuples and not joined by a special...

new version where actions are composed of tuples and not joined by a special character, has been tested for ppo and ddpt when interacting with rule simulator and with supervised training
parent 23200b74
No related branches found
No related tags found
No related merge requests found
...@@ -111,14 +111,14 @@ class VectorBase(Vector): ...@@ -111,14 +111,14 @@ class VectorBase(Vector):
if turn['speaker'] == 'system': if turn['speaker'] == 'system':
for act in delex_acts: for act in delex_acts:
act = tuple(act) act = tuple([a.lower() for a in act])
if act not in system_dict: if act not in system_dict:
system_dict[act] = 1 system_dict[act] = 1
else: else:
system_dict[act] += 1 system_dict[act] += 1
else: else:
for act in delex_acts: for act in delex_acts:
act = tuple(act) act = tuple([a.lower() for a in act])
if act not in user_dict: if act not in user_dict:
user_dict[act] = 1 user_dict[act] = 1
else: else:
......
...@@ -182,7 +182,7 @@ if __name__ == '__main__': ...@@ -182,7 +182,7 @@ if __name__ == '__main__':
args = arg_parser() args = arg_parser()
root_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) root_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
with open(os.path.join(root_directory, 'config.json'), 'r') as f: with open(os.path.join(root_directory, 'configs/multiwoz21_dpt.json'), 'r') as f:
cfg = json.load(f) cfg = json.load(f)
cfg['dataset_name'] = args.dataset_name cfg['dataset_name'] = args.dataset_name
......
File added
File added
"attraction"
"general"
"hospital"
"hotel"
"police"
"restaurant"
"taxi"
"train"
"eos"
"inform"
"nooffer"
"recommend"
"request"
"select"
"bye"
"greet"
"reqmore"
"welcome"
"book"
"offerbook"
"nobook"
["address", "1"]
["address", "2"]
["address", "3"]
["area", "1"]
["area", "2"]
["area", "3"]
["choice", "1"]
["choice", "2"]
["choice", "3"]
["entrance fee", "1"]
["entrance fee", "2"]
["name", "1"]
["name", "2"]
["name", "3"]
["name", "4"]
["phone", "1"]
["postcode", "1"]
["type", "1"]
["type", "2"]
["type", "3"]
["type", "4"]
["type", "5"]
["none", "none"]
["area", "?"]
["entrance fee", "?"]
["name", "?"]
["type", "?"]
["department", "1"]
["department", "?"]
["book day", "1"]
["book people", "1"]
["book stay", "1"]
["internet", "1"]
["parking", "1"]
["price range", "1"]
["price range", "2"]
["ref", "1"]
["stars", "1"]
["stars", "2"]
["book day", "?"]
["book people", "?"]
["book stay", "?"]
["internet", "?"]
["parking", "?"]
["price range", "?"]
["stars", "?"]
["book time", "1"]
["food", "1"]
["food", "2"]
["food", "3"]
["food", "4"]
["postcode", "2"]
["book time", "?"]
["food", "?"]
["arrive by", "1"]
["departure", "1"]
["destination", "1"]
["leave at", "1"]
["arrive by", "?"]
["departure", "?"]
["destination", "?"]
["leave at", "?"]
["arrive by", "2"]
["day", "1"]
["duration", "1"]
["leave at", "2"]
["leave at", "3"]
["price", "1"]
["train id", "1"]
["day", "?"]
"pad"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment