napolab

The Natural Portuguese Language Benchmark (Napolab). Stay up to date with the latest advancements in Portuguese language models and their performance across carefully curated Portuguese language tasks.

https://github.com/ruanchaves/napolab

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.4%) to scientific vocabulary

Keywords

benchmarks catalan datasets english galician hate-speech huggingface huggingface-transformers large-language-models nlp portuguese python question-answering semantic-similarity spanish text-simplification textual-entailment transformers
Last synced: 6 months ago · JSON representation

Repository

The Natural Portuguese Language Benchmark (Napolab). Stay up to date with the latest advancements in Portuguese language models and their performance across carefully curated Portuguese language tasks.

Basic Info
  • Host: GitHub
  • Owner: ruanchaves
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 518 KB
Statistics
  • Stars: 70
  • Watchers: 7
  • Forks: 3
  • Open Issues: 0
  • Releases: 2
Topics
benchmarks catalan datasets english galician hate-speech huggingface huggingface-transformers large-language-models nlp portuguese python question-answering semantic-similarity spanish text-simplification textual-entailment transformers
Created almost 3 years ago · Last pushed 7 months ago
Metadata Files
Readme Contributing License Code of conduct Citation

README.md

Natural Portuguese Language Benchmark (Napolab)

The Napolab is your go-to collection of Portuguese datasets for the evaluation of Large Language Models.

Medium Article: "The Hidden Truth About LLM Performance: Why Your Benchmark Results Might Be Misleading"

Napolab Leaderboard

Browse the Napolab Leaderboard and stay up to date with the latest advancements in Portuguese language models.

Napolab Leaderboard Interface Model Performance Analysis

Napolab for Large Language Models (LLMs)

A format of Napolab specifically designed for researchers experimenting with Large Language Models (LLMs) is now available. This format includes two main fields:

  • Prompt: The input prompt to be fed into the LLM.
  • Answer: The expected classification output label from the LLM, which is always a number between 0 and 5.

The dataset in this format can be accessed at https://huggingface.co/datasets/ruanchaves/napolab. If youve used Napolab for LLM evaluations, please share your findings with us!

Models

Nicholas Kluge, et al. have fine-tuned TeenyTinyLlama models on the FaQUAD-NLI and HateBR datasets from Napolab. For more information, please refer to the article "TeenyTinyLlama: open-source tiny language models trained in Brazilian Portuguese".

We've made several models, fine-tuned on this benchmark, available on 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 |

For model fine-tuning details and benchmark results, visit EVALUATION.md.

Guidelines

Napolab adopts the following guidelines for the inclusion of datasets:

  • Natural: As much as possible, datasets consist of natural Portuguese text or professionally translated text.
  • Reliable: Metrics correlate reliably with human judgments (accuracy, F1 score, Pearson correlation, etc.).
  • Public: Every dataset is available through a public link.
  • Human: Expert human annotations only. No automatic or unreliable annotations.
  • General: No domain-specific knowledge or advanced preparation is needed to solve dataset tasks.

Napolab currently includes the following datasets:

| | | | | :---: | :---: | :---: | |assin | assin2 | rerelem| |hatebr| reli-sa | faquad-nli | |porsimplessent | | |

** Contribute**: We're open to expanding Napolab! Suggest additions in the issues. For more information, read our CONTRIBUTING.md.

For broader accessibility, all datasets have translations in Catalan, English, Galician and Spanish using the facebook/nllb-200-1.3B model via Easy-Translate.

Usage

To reproduce the Napolab benchmark available on the Hugging Face Hub locally, follow these steps:

  1. Clone the repository and install the library:

bash git clone https://github.com/ruanchaves/napolab.git cd napolab pip install -e .

  1. Generate the benchmark file:

python from napolab import export_napolab_benchmark, convert_to_completions_format input_df = export_napolab_benchmark() output_df = convert_to_completions_format(input_df) output_df.reset_index().to_csv("test.csv", index=False)

Citation

If you would like to cite our work or models, please reference the Master's thesis Lessons Learned from the Evaluation of Portuguese Language Models.

@mastersthesis{chaves2023lessons, title={Lessons learned from the evaluation of Portuguese language models}, author={Chaves Rodrigues, Ruan}, year={2023}, school={University of Malta}, url={https://www.um.edu.mt/library/oar/handle/123456789/120557} }

Disclaimer

The HateBR dataset, including all its components, is provided strictly for academic and research purposes. The use of the HateBR dataset for any commercial or non-academic purpose is expressly prohibited without the prior written consent of SINCH.

Owner

  • Name: Ruan Chaves
  • Login: ruanchaves
  • Kind: user
  • Location: Malta

Machine Learning Engineer

GitHub Events

Total
  • Watch event: 6
  • Delete event: 2
  • Push event: 13
  • Pull request event: 9
  • Fork event: 1
  • Create event: 4
Last Year
  • Watch event: 6
  • Delete event: 2
  • Push event: 13
  • Pull request event: 9
  • Fork event: 1
  • Create event: 4

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 71
  • Total Committers: 1
  • Avg Commits per committer: 71.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 14
  • Committers: 1
  • Avg Commits per committer: 14.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Ruan Chaves r****3@g****m 71

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 1
  • Total pull requests: 8
  • Average time to close issues: over 1 year
  • Average time to close pull requests: less than a minute
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 8
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • FerroEduardo (1)
Pull Request Authors
  • ruanchaves (8)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 14 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
pypi.org: napolab

Natural Portuguese Language Benchmark

  • Homepage: https://github.com/ruanchaves/napolab
  • Documentation: https://napolab.readthedocs.io/
  • License: MIT License Copyright (c) 2023 Ruan Chaves Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 1.0.1
    published over 2 years ago
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 14 Last month
Rankings
Dependent packages count: 7.4%
Stargazers count: 13.9%
Forks count: 22.8%
Average: 28.3%
Dependent repos count: 69.1%
Maintainers (1)
Last synced: 6 months ago