diff --git a/papers/TIARA/HuggingFace/tiara-grailqa-class-retrieval-bert-base/LICENSE b/papers/TIARA/HuggingFace/tiara-grailqa-class-retrieval-bert-base/LICENSE new file mode 100644 index 0000000..ce29e72 --- /dev/null +++ b/papers/TIARA/HuggingFace/tiara-grailqa-class-retrieval-bert-base/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Microsoft Corporation. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/papers/TIARA/HuggingFace/tiara-grailqa-class-retrieval-bert-base/README.md b/papers/TIARA/HuggingFace/tiara-grailqa-class-retrieval-bert-base/README.md new file mode 100644 index 0000000..a5dee19 --- /dev/null +++ b/papers/TIARA/HuggingFace/tiara-grailqa-class-retrieval-bert-base/README.md @@ -0,0 +1,50 @@ +--- +license: mit +language: +- en +metrics: +- accuracy +pipeline_tag: text-classification +datasets: +- grail_qa +--- +This repo contains the **GrailQA class retrieval** model of the EMNLP 2022 paper [TIARA: Multi-grained Retrieval for Robust Question Answering over Large Knowledge Base](https://arxiv.org/abs/2210.12925). + +[[code](https://github.com/microsoft/KC/tree/main/papers/TIARA)] [[poster](https://yihengshu.github.io/homepage/EMNLP22poster.pdf)] [[slides](https://yihengshu.github.io/homepage/EMNLP22slides.pdf)] [[video](https://s3.amazonaws.com/pf-user-files-01/u-59356/uploads/2022-11-04/fr03tjr/EMNLP22.mp4)] [[ACL Anthology](https://aclanthology.org/2022.emnlp-main.555/)] [[BibTeX](https://aclanthology.org/2022.emnlp-main.555.bib)] + +## Usage + +HuggingFace Transformer and Task: `BertForSequenceClassification`. + +This model is a part of [TIARA_DATA.zip](https://kcpapers.blob.core.windows.net/tiara-emnlp2022/TIARA_DATA.zip). + +If you use it for TIARA, put it under the dir `/model/schema_dense_retrieval/class/`. + +Input format: `question [SEP] class`, e.g., + +``` +what napa county wine is 13.9 percent alcohol by volume? [SEP] wine.wine +``` + +Output: a matching score. + +## Citation + +``` +@inproceedings{shu-etal-2022-tiara, + title = "{TIARA}: Multi-grained Retrieval for Robust Question Answering over Large Knowledge Base", + author = {Shu, Yiheng and + Yu, Zhiwei and + Li, Yuhan and + Karlsson, B{\"o}rje and + Ma, Tingting and + Qu, Yuzhong and + Lin, Chin-Yew}, + booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing", + month = dec, + year = "2022", + address = "Abu Dhabi, United Arab Emirates", + publisher = "Association for Computational Linguistics", + url = "https://aclanthology.org/2022.emnlp-main.555", +} +``` diff --git a/papers/TIARA/HuggingFace/tiara-grailqa-generation-lf-schema-t5-base/LICENSE b/papers/TIARA/HuggingFace/tiara-grailqa-generation-lf-schema-t5-base/LICENSE new file mode 100644 index 0000000..ce29e72 --- /dev/null +++ b/papers/TIARA/HuggingFace/tiara-grailqa-generation-lf-schema-t5-base/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Microsoft Corporation. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/papers/TIARA/HuggingFace/tiara-grailqa-generation-lf-schema-t5-base/README.md b/papers/TIARA/HuggingFace/tiara-grailqa-generation-lf-schema-t5-base/README.md new file mode 100644 index 0000000..15cdbd7 --- /dev/null +++ b/papers/TIARA/HuggingFace/tiara-grailqa-generation-lf-schema-t5-base/README.md @@ -0,0 +1,53 @@ +--- +license: mit +datasets: +- grail_qa +language: +- en +pipeline_tag: text2text-generation +--- + +This repo contains the **GrailQA target logical form generation** model of the EMNLP 2022 paper [TIARA: Multi-grained Retrieval for Robust Question Answering over Large Knowledge Base](https://arxiv.org/abs/2210.12925). + +[[code](https://github.com/microsoft/KC/tree/main/papers/TIARA)] [[poster](https://yihengshu.github.io/homepage/EMNLP22poster.pdf)] [[slides](https://yihengshu.github.io/homepage/EMNLP22slides.pdf)] [[video](https://s3.amazonaws.com/pf-user-files-01/u-59356/uploads/2022-11-04/fr03tjr/EMNLP22.mp4)] [[ACL Anthology](https://aclanthology.org/2022.emnlp-main.555/)] [[BibTeX](https://aclanthology.org/2022.emnlp-main.555.bib)] + +## Usage + +HuggingFace Transformer and Task: `T5ForConditionalGeneration`. + +This model and the contexts of logical form and schema is a part of [TIARA_DATA.zip](https://kcpapers.blob.core.windows.net/tiara-emnlp2022/TIARA_DATA.zip). + +If you use it for TIARA, put it under the dir `/model/grailqa_generation/lf_schema/`. + +Input format: `question|query||entity| |class||relation|`, e.g., + +``` +what napa county wine is 13.9 percent alcohol by volume? |query|(AND wine.wine (JOIN wine.wine.percent_...|...|entity|napa valley m.0l2l_ |class|wine.wine|wine.wine_type|wine.vineyard|...|relation|wine.wine.percentage_alcohol|wine.wine_region|... +``` + +Output: a target logical form, e.g., + +``` +(AND wine.wine (AND (JOIN (R wine.wine_sub_region.wines) m.0l2l_) (JOIN wine.wine.percentage_alcohol 13.9^^http://www.w3.org/2001/XMLSchema#float))) +``` + +## Citation + +``` +@inproceedings{shu-etal-2022-tiara, + title = "{TIARA}: Multi-grained Retrieval for Robust Question Answering over Large Knowledge Base", + author = {Shu, Yiheng and + Yu, Zhiwei and + Li, Yuhan and + Karlsson, B{\"o}rje and + Ma, Tingting and + Qu, Yuzhong and + Lin, Chin-Yew}, + booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing", + month = dec, + year = "2022", + address = "Abu Dhabi, United Arab Emirates", + publisher = "Association for Computational Linguistics", + url = "https://aclanthology.org/2022.emnlp-main.555", +} +``` \ No newline at end of file diff --git a/papers/TIARA/HuggingFace/tiara-grailqa-relation-retrieval-bert-base/LICENSE b/papers/TIARA/HuggingFace/tiara-grailqa-relation-retrieval-bert-base/LICENSE new file mode 100644 index 0000000..ce29e72 --- /dev/null +++ b/papers/TIARA/HuggingFace/tiara-grailqa-relation-retrieval-bert-base/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Microsoft Corporation. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/papers/TIARA/HuggingFace/tiara-grailqa-relation-retrieval-bert-base/README.md b/papers/TIARA/HuggingFace/tiara-grailqa-relation-retrieval-bert-base/README.md new file mode 100644 index 0000000..edae24e --- /dev/null +++ b/papers/TIARA/HuggingFace/tiara-grailqa-relation-retrieval-bert-base/README.md @@ -0,0 +1,55 @@ +--- +license: mit +language: +- en +metrics: +- accuracy +pipeline_tag: text-classification +datasets: +- grail_qa +--- + + +This repo contains the **GrailQA relation retrieval** model of the EMNLP 2022 paper [TIARA: Multi-grained Retrieval for Robust Question Answering over Large Knowledge Base](https://arxiv.org/abs/2210.12925). + +[[code](https://github.com/microsoft/KC/tree/main/papers/TIARA)] [[poster](https://yihengshu.github.io/homepage/EMNLP22poster.pdf)] [[slides](https://yihengshu.github.io/homepage/EMNLP22slides.pdf)] [[video](https://s3.amazonaws.com/pf-user-files-01/u-59356/uploads/2022-11-04/fr03tjr/EMNLP22.mp4)] [[ACL Anthology](https://aclanthology.org/2022.emnlp-main.555/)] [[BibTeX](https://aclanthology.org/2022.emnlp-main.555.bib)] + + +## Usage + +HuggingFace Transformer and Task: `BertForSequenceClassification`. + +This model is a part of [TIARA_DATA.zip](https://kcpapers.blob.core.windows.net/tiara-emnlp2022/TIARA_DATA.zip). + +If you use it for TIARA, put it under the dir `/model/schema_dense_retrieval/relation/`. + +Input format: `question [SEP] relation`, e.g., + +``` + +what napa county wine is 13.9 percent alcohol by volume? [SEP] wine.wine.percentage_alcohol + +``` + +Output: a matching score. + +## Citation + +``` +@inproceedings{shu-etal-2022-tiara, + title = "{TIARA}: Multi-grained Retrieval for Robust Question Answering over Large Knowledge Base", + author = {Shu, Yiheng and + Yu, Zhiwei and + Li, Yuhan and + Karlsson, B{\"o}rje and + Ma, Tingting and + Qu, Yuzhong and + Lin, Chin-Yew}, + booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing", + month = dec, + year = "2022", + address = "Abu Dhabi, United Arab Emirates", + publisher = "Association for Computational Linguistics", + url = "https://aclanthology.org/2022.emnlp-main.555", +} +``` \ No newline at end of file diff --git a/papers/TIARA/HuggingFace/tiara-webqsp-generation-lf-schema-t5-base/LICENSE b/papers/TIARA/HuggingFace/tiara-webqsp-generation-lf-schema-t5-base/LICENSE new file mode 100644 index 0000000..ce29e72 --- /dev/null +++ b/papers/TIARA/HuggingFace/tiara-webqsp-generation-lf-schema-t5-base/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Microsoft Corporation. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/papers/TIARA/HuggingFace/tiara-webqsp-generation-lf-schema-t5-base/README.md b/papers/TIARA/HuggingFace/tiara-webqsp-generation-lf-schema-t5-base/README.md new file mode 100644 index 0000000..af29b3f --- /dev/null +++ b/papers/TIARA/HuggingFace/tiara-webqsp-generation-lf-schema-t5-base/README.md @@ -0,0 +1,52 @@ +--- +license: mit +language: +- en +pipeline_tag: text2text-generation +--- + +This repo contains the **WebQSP target logical form generation** model of the EMNLP 2022 paper [TIARA: Multi-grained Retrieval for Robust Question Answering over Large Knowledge Base](https://arxiv.org/abs/2210.12925). + +[[code](https://github.com/microsoft/KC/tree/main/papers/TIARA)] [[poster](https://yihengshu.github.io/homepage/EMNLP22poster.pdf)] [[slides](https://yihengshu.github.io/homepage/EMNLP22slides.pdf)] [[video](https://s3.amazonaws.com/pf-user-files-01/u-59356/uploads/2022-11-04/fr03tjr/EMNLP22.mp4)] [[ACL Anthology](https://aclanthology.org/2022.emnlp-main.555/)] [[BibTeX](https://aclanthology.org/2022.emnlp-main.555.bib)] + +## Usage + +HuggingFace Transformer and Task: `T5ForConditionalGeneration`. + +This model and the contexts of logical form and schema is a part of [TIARA_DATA.zip](https://kcpapers.blob.core.windows.net/tiara-emnlp2022/TIARA_DATA.zip). + +If you use it for TIARA, put it under the dir `/model/webqsp_generation/lf_relation/`. + +Input format: `question|query||entity| |relation|`, e.g., + +``` +what napa county wine is 13.9 percent alcohol by volume? |query| (JOIN wine.wine.percent_...|...|entity|napa valley m.0l2l_ |relation|wine.wine.percentage_alcohol|wine.wine_region|... +``` + +Output: a target logical form, e.g., + +``` +(AND (JOIN (R wine.wine_sub_region.wines) m.0l2l_) (JOIN wine.wine.percentage_alcohol 13.9^^http://www.w3.org/2001/XMLSchema#float)) +``` + + +## Citation + +``` +@inproceedings{shu-etal-2022-tiara, + title = "{TIARA}: Multi-grained Retrieval for Robust Question Answering over Large Knowledge Base", + author = {Shu, Yiheng and + Yu, Zhiwei and + Li, Yuhan and + Karlsson, B{\"o}rje and + Ma, Tingting and + Qu, Yuzhong and + Lin, Chin-Yew}, + booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing", + month = dec, + year = "2022", + address = "Abu Dhabi, United Arab Emirates", + publisher = "Association for Computational Linguistics", + url = "https://aclanthology.org/2022.emnlp-main.555", +} +``` \ No newline at end of file diff --git a/papers/TIARA/HuggingFace/tiara-webqsp-relation-retrieval-bert-base/LICENSE b/papers/TIARA/HuggingFace/tiara-webqsp-relation-retrieval-bert-base/LICENSE new file mode 100644 index 0000000..ce29e72 --- /dev/null +++ b/papers/TIARA/HuggingFace/tiara-webqsp-relation-retrieval-bert-base/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Microsoft Corporation. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/papers/TIARA/HuggingFace/tiara-webqsp-relation-retrieval-bert-base/README.md b/papers/TIARA/HuggingFace/tiara-webqsp-relation-retrieval-bert-base/README.md new file mode 100644 index 0000000..d25f42b --- /dev/null +++ b/papers/TIARA/HuggingFace/tiara-webqsp-relation-retrieval-bert-base/README.md @@ -0,0 +1,53 @@ +--- +license: mit +language: +- en +metrics: +- accuracy +pipeline_tag: text-classification +--- + + +This repo contains the **WebQSP relation retrieval** model of the EMNLP 2022 paper [TIARA: Multi-grained Retrieval for Robust Question Answering over Large Knowledge Base](https://arxiv.org/abs/2210.12925). + +[[code](https://github.com/microsoft/KC/tree/main/papers/TIARA)] [[poster](https://yihengshu.github.io/homepage/EMNLP22poster.pdf)] [[slides](https://yihengshu.github.io/homepage/EMNLP22slides.pdf)] [[video](https://s3.amazonaws.com/pf-user-files-01/u-59356/uploads/2022-11-04/fr03tjr/EMNLP22.mp4)] [[ACL Anthology](https://aclanthology.org/2022.emnlp-main.555/)] [[BibTeX](https://aclanthology.org/2022.emnlp-main.555.bib)] + + +## Usage + +HuggingFace Transformer and Task: `BertForSequenceClassification`. + +This model is a part of [TIARA_DATA.zip](https://kcpapers.blob.core.windows.net/tiara-emnlp2022/TIARA_DATA.zip). + +If you use it for TIARA, put it under the dir `/model/webqsp_schema_dense_retrieval/`. + +Input format: `question [SEP] relation`, e.g., + +``` + +what napa county wine is 13.9 percent alcohol by volume? [SEP] wine.wine.percentage_alcohol + +``` + +Output: a matching score. + +## Citation + +``` +@inproceedings{shu-etal-2022-tiara, + title = "{TIARA}: Multi-grained Retrieval for Robust Question Answering over Large Knowledge Base", + author = {Shu, Yiheng and + Yu, Zhiwei and + Li, Yuhan and + Karlsson, B{\"o}rje and + Ma, Tingting and + Qu, Yuzhong and + Lin, Chin-Yew}, + booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing", + month = dec, + year = "2022", + address = "Abu Dhabi, United Arab Emirates", + publisher = "Association for Computational Linguistics", + url = "https://aclanthology.org/2022.emnlp-main.555", +} +``` \ No newline at end of file