Observed since 20 Oct, 17:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A Streamlit-based application to compute Harmonic Abstraction and Rouge Complement Abstraction a formula based approch
This package provides a Streamlit-based application to compute Harmonic Abstraction and Rouge Complement Abstraction metrics for text summarization tasks. It processes JSON files containing documents, reference summaries, and model-generated summaries, and returns detailed metric analysis including ROUGE complements and various abstraction ratios.
Install the required dependencies using the following commands:
pip install streamlit
pip install pandas
pip install rouge
Run the Streamlit app with the following command:
streamlit run app.py
Upload a JSON file in the format:
[
{
"Index": 0,
"Document": "The input text for the summarization task...",
"Summary": "The reference summary...",
"Models": {
"model_name_1": "Generated summary by model 1",
"model_name_2": "Generated summary by model 2"
}
}
]
Once the package is installed, you can access all the functionalities it provides. Below is a guide to the available functions and how to use them.
To use the functions provided in this package, you need to import them from the respective modules based on your use case (single text processing or large text processing). Here’s a guide on how to access each functionality.
from Abs_harmonic_single.Abs_harmonic import ( calculate_ra, calculate_sa, calculate_ar, abs_Harmonic, abs_rouge_complement )
input_text = "This is the original text." reference = "This is a summary of the original text." generated_summary = "This is the generated summary."
harmonic_result = abs_Harmonic(input_text, reference, generated_summary) print(f"Harmonic Abstraction: {harmonic_result}")
ra_complement, sa_complement = abs_rouge_complement(input_text, reference, generated_summary) print(f"Rouge Complement Abstraction (RA): {ra_complement}") print(f"Rouge Complement Abstraction (SA): {sa_complement}")
In Abs_harmonic_single.Abs_harmonic
from Abs_harmonic_large_process.Abs_harmonic_large_v2
Click Process Data to calculate Harmonic Abstraction, Rouge Complement Abstraction, and other metrics for each model's generated summary.
Download the processed results in CSV format.
Harmonic Abstraction (RA, SA, AR):
Rouge Complement Abstraction:
Length Ratios:
Weighted Overlap:
After running the application, you can upload a JSON file, calculate metrics, and download the results as a CSV file.
The output file will include metrics such as:
https://drive.google.com/file/d/1_tnkzaMYOuFWWf31OdYjldfZG1XSdkcb/view?usp=sharing
This project is licensed under the MIT License. See the LICENSE file for more details.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.1 | 29 Sept 2024 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 17:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:6dd2bca410d8e46ccc293566a841c6085edaf5867256f4cb1eca0b1fc1049e56