ShiyuNee / Facet-Generation

This is the source code for paper "A Comparative Study of Training Objectives for Clarification Facet Generation(SIGIR-AP 2023)".

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facet-Generation

This is the source code for paper A Comparative Study of Training Objectives for Clarification Facet Generation(SIGIR-AP 2023)

Requirements and Installation

  • Python version >= 3.8
  • PyTorch version >= 1.11.0
  • Transformers version >= 4.27.2

Corpus

Models

We just provide model weights in the following websites(Seq-default contains both model weights and the tokenizer). The tokenizer for each model is the same with the tokenizer used in Bart-base(https://huggingface.co/facebook/bart-base)

Usage

  • data_process.py: prepare data for inference
  • inference.py: generate facets for the given data
  • evaluation.py: evaluate the results
  • score.py: replace score.py in bert_score(package) with this file so we can load the model and tokenizer only once

About

This is the source code for paper "A Comparative Study of Training Objectives for Clarification Facet Generation(SIGIR-AP 2023)".


Languages

Language:Python 100.0%