Skip to main content

Natural Portuguese Language Benchmark

Project description

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:

We 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 into English, Spanish, Galician, and Catalan using the facebook/nllb-200-1.3B model through the Easy-Translate library.

The simplest way to use the Napolab benchmark is to run the commands:

pip install napolab
python -m napolab

This 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 the datasets library, you can also load the benchmark in this way:

from napolab import load_napolab_benchmark

napolab = load_napolab_benchmark(include_translations=True)

benchmark = napolab["datasets"]
translated_benchmark = napolab["translations"]

Demos

All of our fine-tuned models have been integrated into an appropriate Hugging Face Space.

Interact with our models in your browser by exploring our demos:

Models

We are making a few models fine-tuned on the datasets in this benchmark available on the Hugging Face Hub.

Datasets mDeBERTa v3 BERT Large BERT Base
ASSIN 2 - STS Link Link Link
ASSIN 2 - RTE Link Link Link
ASSIN - STS Link Link Link
ASSIN - RTE Link Link Link
HateBR Link Link Link
FaQUaD-NLI Link Link Link
PorSimplesSent Link Link Link

More details about how the models have been fine-tuned and their results on the benchmark can be found under EVALUATION.md.

Citation

Our 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}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napolab-1.0.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

napolab-1.0.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file napolab-1.0.1.tar.gz.

File metadata

  • Download URL: napolab-1.0.1.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for napolab-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ba7412e14f2df53bd4c7b21570e59b7739eff61514cda48923274c16be0699a6
MD5 f50c094c86bc1a81c3431af98bf80456
BLAKE2b-256 a6f4fa924b5a1cfd9afe84fb7260ac137e6a67c075ea931d5f3dcf96b9571d5b

See more details on using hashes here.

File details

Details for the file napolab-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: napolab-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for napolab-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d823088fb33573f50071876d57706b1570a89809f1b51a50fa198a975648cbcc
MD5 e8d768c71fd0e5f5ed2d28d60a17ad30
BLAKE2b-256 0faea76b6e2860a4bcd82adbedb31d4ac20fbc7d77932fa1b1846b69ba53045e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page