zliucr / mixed-language-training Goto Github PK
View Code? Open in Web Editor NEWAttention-Informed Mixed-Language Training for Zero-shot Cross-lingual Task-oriented Dialogue Systems (AAAI-2020)
License: MIT License
Attention-Informed Mixed-Language Training for Zero-shot Cross-lingual Task-oriented Dialogue Systems (AAAI-2020)
License: MIT License
你好,可以对nlu_emb的各个文件做下说明吗,比如使用的什么样的embedding,感谢~
def load_data(params, dialogue_ontology, mapping=None):
pri_turns_train = load_woz_data("data/dst/dst_data/tok_woz_train_en.json", "en", dialogue_ontology, mapping=mapping)
pri_turns_val = load_woz_data("data/dst/dst_data/tok_woz_validate_en.json", "en", dialogue_ontology, mapping=mapping)
val_count = len(pri_turns_val)
pri_turns_train = pri_turns_train + pri_turns_val[0:int(0.75 * val_count)]
tgt_pri_turns_val = load_woz_data("data/dst/dst_data/tok_woz_validate_"+params.trans_lang+".json", params.trans_lang, dialogue_ontology, mapping=mapping)
tgt_pri_turns_test = load_woz_data("data/dst/dst_data/tok_woz_test_"+params.trans_lang+".json", params.trans_lang, dialogue_ontology, mapping=mapping)
return pri_turns_train, tgt_pri_turns_val, tgt_pri_turns_test
看起来这里把英语的验证集的75%也加到训练集了。这样做是可以的么?如果这样做可以的话,那么为什么这个比例是75%?
可不可以把英语的测试集也加到训练集里?
Hi Zihan,
Thank you for sharing the code of the paper. I'm trying to reproduce it now. I install torch==0.4.0 with your settings, but I have some problems. The error is as follows:
And I try the latest version torch==1.10.0, but another error is as follows:
Do you have any experience in solving them?
Regards,
Guojun
Hi Zihan,
Thanks for contributing your source code of the paper https://arxiv.org/pdf/1911.09273.pdf.
In this source code, I have not find the Transformer/Multi. BERT/XLM models, as they are the state-of-the-art models as reported in the paper.
Could you please share the models or let us know how to reproduce the reported model.
Regards,
Jiahuan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.