readme: ---
  license: mit
  datasets:
  - grail_qa
  language:
  - en
  metrics:
  - accuracy
  pipeline_tag: text2text-generation
  ---
  
  GrailQA target logical form generation model of [TIARA](https://arxiv.org/abs/2210.12925).
  
  [[paper](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)]
  
  Model and Task: T5ForConditionalGeneration
  
  Input format: `question|query|<top-5 logical form>|entity|<entity label> <entity mid>|class|<top-10 class>|relation|<top-10 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|...
  ```
  
  For GrailQA, the contexts of logical form and schema can be found [here](https://kcpapers.blob.core.windows.net/tiara-emnlp2022/TIARA_DATA.zip).
  
  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)))
  ```