Italian ATS Evaluator
Project description
italian-ats-evalautor
This is an open source project to evaluate the performance of an italian ATS (Automatic Text Simplifier) on a set of texts.
You can analyze a single text extracting the following features:
- Overall:
- Number of tokens
- Number of tokens (including punctuation)
- Number of characters
- Number of characters (including punctuation)
- Number of words
- Number of syllables
- Number of unique lemmas
- Number of sentences
- Readability:
- Type-Token Ratio (TTR)
- Gulpease Index
- Flesch-Vacca Index
- Lexical Density
- Part of Speech (POS) distribution
- Verbs distribution
- Active Verbs
- Passive Verbs
- Italian Basic Vocabulary (NVdB) from Il Nuovo vocabolario di base della lingua italiana, Tullio De Mauro
- All
- FO (Fundamentals)
- AU (High Usage)
- AD (High Availability)
You can also compare two texts and get the following metrics:
- Semantic:
- Semantic Similarity
- Character diff:
- Edit Distance
- Token diff:
- Amount of tokens added
- Amount of tokens removed
- Amount of VdB tokens removed
- Amount of VdB tokens added
Installation
pip install italian-ats-evaluator
Usage
from italian_ats_evaluator import TextAnalyzer
result = TextAnalyzer(
text="Il gatto mangia il topo",
spacy_model_name="it_core_news_lg"
)
from italian_ats_evaluator import SimplificationAnalyzer
result = SimplificationAnalyzer(
reference_text="Il felino mangia il roditore",
simplified_text="Il gatto mangia il topo",
spacy_model_name="it_core_news_lg",
sentence_transformers_model_name="intfloat/multilingual-e5-base"
)
Development
Create a virtual environment
python3 -m venv venv
source venv/bin/activate
Install the package in editable mode
pip install -e .
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Acknowledgements
This contribution is a result of the research conducted within the framework of the PRIN 2020 (Progetti di Rilevante Interesse Nazionale) “VerbACxSS: on analytic verbs, complexity, synthetic verbs, and simplification. For accessibility” (Prot. 2020BJKB9M), funded by the Italian Ministero dell’Università e della Ricerca.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file italian_ats_evaluator-2.0.6.tar.gz
.
File metadata
- Download URL: italian_ats_evaluator-2.0.6.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 167d9799b7a26fb335d8fe709f881d18cb91e833873229331ed586f22062fbbe |
|
MD5 | 51b8167420509b526e32da0c0417ee5d |
|
BLAKE2b-256 | 175ac694957e2c77e3a4d0d4aceaa12b7960439dc353d6fb95874a9f99e358c9 |
File details
Details for the file italian_ats_evaluator-2.0.6-py3-none-any.whl
.
File metadata
- Download URL: italian_ats_evaluator-2.0.6-py3-none-any.whl
- Upload date:
- Size: 35.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | edaceadfeaa512b742cd7eca057cf8be5bedae4c53d9e5f74d9aea36cd589532 |
|
MD5 | 1758480cf8fb134ab3cf8bf0d95b2321 |
|
BLAKE2b-256 | bf8112b59becfee7e8709809d26f9451189777f01400526feec1814276a2dba8 |