Skip to content

Official code for the paper "Mitigating the Impact of Reference Quality on Evaluation of Summarization Systems with Reference-Free Metrics"

Notifications You must be signed in to change notification settings

giganttheo/importance-based-relevance-score

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

importance-based-relevance-score

Official code for the paper "Mitigating the Impact of Reference Quality on Evaluation of Summarization Systems with Reference-Free Metrics", published at EMNLP 2024

To reproduce the results from the paper: python .\compute_correlations.py


Usage

First we need to install some nltk dependencies.

import nltk

nltk.download('stopwords')
nltk.download('punkt_tab')

Then we can import a scorer, given a corpus of textual documents.

from scorer import get_ibr_scorer

corpus = ["",] # list of textual documents

ibr_scorer = get_ibr_scorer(corpus) #loads the importance-based relevance scorer with default settings

Finally, we can get the score for a summary, with respect to a document of the corpus:

summary = "" #textual summary to evaluate
i = 0 #index of the related document in the corpus

score = ibr_scorer(summary, i)

About

Official code for the paper "Mitigating the Impact of Reference Quality on Evaluation of Summarization Systems with Reference-Free Metrics"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages