Skip to content
Snippets Groups Projects
Unverified Commit ce4e1739 authored by 罗崚骁's avatar 罗崚骁 Committed by GitHub
Browse files

some changes in #36 (#37)

* multiwoz_zh

* crosswoz_en

* translation train

* test translation train

* update evaluation code

* update evaluation code for crosswoz

* evaluate human val set

* update readme

* evaluate machine val

* extract all ontology, bad result

* update evalutate

* update evalutation result on crosswoz-en

* fix bug #34

* revert changes

* revert changes

* some changes of #36
parent 5c79bd1d
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ convlab2/dst/sumbt/multiwoz/output/
convlab2/nlg/sclstm/**/generated_sens_sys.json
convlab2/nlg/template/**/generated_sens_sys.json
convlab2/nlu/jointBERT/crosswoz/**/data
convlab2/nlu/jointBERT/multiwoz/**/data
# test script
*_test.py
......
......@@ -123,7 +123,7 @@ def convert_to_glue_format(data_dir, sumbt_dir):
continue # not defined in ontology
value = data[file_id]['log'][idx]['metadata'][domain]['book'][slot].strip()
value = trans_value(value, value)
value = trans_value(value)
if str('预订' + slot) not in ontology[domain]:
print("预订%s is not defined in domain %s" % (slot, domain))
......
......@@ -567,7 +567,7 @@ class SUMBTTracker(DST):
print('loading weights from trained model')
self.load_weights(model_path=os.path.join(SUMBT_PATH, args.output_dir, 'pytorch_model.bin'))
else:
raise ValueError('no availabel weights found.')
raise ValueError('no available weights found.')
self.param_restored = True
def update(self, user_act=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment