Package: napolab
Natural Portuguese Language Benchmark (Napolab)The Natural Portuguese Language Benchmark (Napolab) is designed to be a collection of Portuguese datasets that are:Natural: Composed, as far as possible, of natural Portuguese text or text that has undergone professional translation.Reliable: The standard metrics used to evaluate the tasks on the dataset should reliably correlate with human judgments (such as accuracy, F1 score, Pearson correlation coefficient, etc.).Public: All datasets must be available and downloadable via a publicly accessible link.Human: All datasets must be annotated by human experts without any automation.General: The datasets should not necessitate domain-specific knowledge or any preparation for an educated Portuguese speaker to solve the suggested tasks.This repository contains links to demos, models fine-tuned on the benchmark, and instructions for using the datasets in the most convenient manner. The benchmark currently includes the following datasets:assinassin2rerelemhatebrreli-safaquad-nliporsimplessentWe are open to expanding the benchmark, and suggestions for future additions are welcome in the issues. We also welcome evaluation results from any models on this benchmark, and we are particularly curious about the outcomes of evaluating recent LLMs on these datasets.In addition to making these datasets available in Portuguese, all datasets have also been automatically translated intoEnglish, Spanish, Galician, and Catalanusing thefacebook/nllb-200-1.3Bmodel through theEasy-Translatelibrary.The simplest way to use the Napolab benchmark is to run the commands:pipinstallnapolab
python-mnapolabThis will download all the datasets from the Hugging Face Hub and save them in CSV format under the current folder.If you would rather deal with the datasets in the format of thedatasetslibrary, you can also load the benchmark in this way:fromnapolabimportload_napolab_benchmarknapolab=load_napolab_benchmark(include_translations=True)benchmark=napolab["datasets"]translated_benchmark=napolab["translations"]DemosAll of our fine-tuned models have been integrated into an appropriateHugging Face Space.Interact with our models in your browser by exploring our demos:Portuguese Offensive Language DetectionPortuguese Question AnsweringPortuguese Semantic SimilarityPortuguese Textual EntailmentPortuguese Text SimplificationModelsWe are making a few models fine-tuned on the datasets in this benchmark available on the Hugging Face Hub.DatasetsmDeBERTa v3BERT LargeBERT BaseASSIN 2 - STSLinkLinkLinkASSIN 2 - RTELinkLinkLinkASSIN - STSLinkLinkLinkASSIN - RTELinkLinkLinkHateBRLinkLinkLinkFaQUaD-NLILinkLinkLinkPorSimplesSentLinkLinkLinkMore details about how the models have been fine-tuned and their results on the benchmark can be found underEVALUATION.md.CitationOur research is ongoing, and we are currently working on describing our experiments in a paper, which will be published soon. In the meanwhile, if you would like to cite our work or models before the publication of the paper, please use the following BibTeX citation for this repository:@software{Chaves_Rodrigues_eplm_2023,
author = {Chaves Rodrigues, Ruan and Tanti, Marc and Agerri, Rodrigo},
doi = {10.5281/zenodo.7781848},
month = {3},
title = {{Evaluation of Portuguese Language Models}},
url = {https://github.com/ruanchaves/napolab},
version = {1.0.0},
year = {2023}
}