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"
)
from italian_ats_evaluator import SimplificationAnalyzer
result = SimplificationAnalyzer(
reference_text="Il felino mangia il roditore",
simplified_text="Il gatto mangia il topo"
)
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 project is part of the research project "VerbACxSS: su verbi analitici, complessità, verbi sintetici, e semplificazione. Per l’accessibilità." funded by the Italian Ministry of University and Research (MUR) under the PRIN 2020 program.
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
Hashes for italian_ats_evaluator-2.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f7a8e5250684a48a19f1d0257778f38d75ec0d4f88ca0b70ceef5fe3c0a7162 |
|
MD5 | 4d963003bb24996c80c8a6d4a54909a0 |
|
BLAKE2b-256 | 42ace67782f22e12d8146408439af78ed1f2e7119fae4d5cdf2b30302edb9d72 |
Hashes for italian_ats_evaluator-2.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 359f7dd94ceff343b06721cd65de1c87a7db7e9a78db025f64b4f1f6cb523f0a |
|
MD5 | 2a5e4061f91be626689893c81bc5b84f |
|
BLAKE2b-256 | 959cb6dfbcbd7eaf2bea866625d680d2cf4a3910041c2592e4a3f2b773a5a23e |