Skip to main content

This is an official source code repository of the paper: Mele et al., Adaptive Utterance Rewriting for Conversational Search, IP&M, 2021.

Authors: Ida Mele, Cristina Ioana Muntean, Franco Maria Nardini, Raffaele Perego, Nicola Tonellotto, Ophir Frieder.

Code: https://github.com/hpclab/adaptive-utterance-rewriting-conversational-search

Data

  • Datasets: CAsT 2019 dataset divided into training and test sets as specified in the paper.

Query resolution

The query resolution module uses both supervised and unsupervised methods for rewriting queries.

For the supervised classification based rewriting run either of the following rewriting strategies "Standard", "Enriched", "LastSE", "First_and_Last_SE", "First_or_Last_SE":

from convrewriting.supervised.pipeline_classification import rewrite_strategy

rewrite_strategy("Standard")

For the unsupervised based rewriting strategy run either of the following:

from convrewriting.unsupervised.pipeline_nlp import rewrite_context, rewrite_first_topic, rewrite_topic_shift

rewrite_context()
rewrite_first_topic()
rewrite_topic_shift()

Citation Licence

This source code is subject to the following citation license:

By downloading and using the source code stored in this GitHub repository, you agree to cite at the undernoted paper in any kind of material you produce where this code has been used to conduct search or experimentation, whether be it a research paper, dissertation, article, poster, presentation, or documentation. By using this software, you have agreed to the citation licence.

Ida Mele, Cristina Ioana Muntean, Franco Maria Nardini, Raffaele Perego, Nicola Tonellotto, Ophir Frieder. 2021. Adaptive Utterance Rewriting in Conversational Search. Information Processing & Management.

@article{mele2021adaptive,
	title = {Adaptive Utterance Rewriting for Conversational Search},
	journal = {Information Processing \& Management},
	volume = {58},
	number = {6},
	pages = {102682},
	year = {2021},
	issn = {0306-4573},
	doi = {https://doi.org/10.1016/j.ipm.2021.102682},
	url = {https://www.sciencedirect.com/science/article/pii/S0306457321001679},
	author = {Ida Mele and Cristina Ioana Muntean and Franco Maria Nardini and Raffaele Perego and Nicola Tonellotto and Ophir Frieder},
}

Contact Us

For any other question/comment, write us an email: {cristina.muntean@isti.cnr.it}

Metadata

Release files for convrewriting 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for convrewriting 0.0.1
File Size Uploaded
convrewriting-0.0.1.tar.gz 5.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for convrewriting 0.0.1
File Interpreter ABI Platform
convrewriting-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 MB

Release files / convrewriting-0.0.1.tar.gz

Download URL convrewriting-0.0.1.tar.gz
Size 5.1 MB
Tags Source
SHA-256 checksum
How to use checksums
448b933cbd1e4ec290f37b70214bc7f5aa0cd3cbb5762def2e600e166722019f
BLAKE2b-256 checksum
How to use checksums
2c6ce0710beec8fe80be50f4e6de31c418e494e42b3432647ceccdf81b98b99e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / convrewriting-0.0.1-py3-none-any.whl

Download URL convrewriting-0.0.1-py3-none-any.whl
Size 5.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
32fab77f58fa0d3a332ef5fa7bf2590822502956b6862a5389f0c89fe6fa62d8
BLAKE2b-256 checksum
How to use checksums
ab4558cb90082ab7b16380ac7a0220f47ff613cb2b9e286ed974121792af43c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page