Skip to main content

Data generation factory for atomic probes in Finesse benchmark. Generates probes_atomic.jsonl from Wikimedia Wikipedia.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description


license: apache-2.0

Github huggingface pypi blog

Finesse Benchmark Database

Overview

finesse-benchmark-database is a data generation factory for atomic probes in the Finesse benchmark. It generates probes_atomic.jsonl files from Wikimedia Wikipedia datasets, leveraging Hugging Face's datasets library, tokenizers from transformers, and optional PyTorch support.

This tool is designed to create high-quality, language-specific probe datasets for benchmarking fine-grained understanding in NLP tasks.

Installation

Install the package from PyPI:

pip install finesse-benchmark-database

Ensure you have Python 3.10+ installed.

Usage

Here's a complete example of how to configure and generate a dataset:

from finesse_benchmark_database.config import ProbeConfig
from finesse_benchmark_database.main import generate_dataset

# Define the configuration
my_config = ProbeConfig(
    languages=['en', 'ko'],  # Languages to generate probes for
    samples_per_language=10,  # Number of samples per language (reduce for testing)
    output_file='my_first_probes.jsonl',  # Output file path
    seed=123  # Random seed for reproducibility
)

# Generate the dataset
print(f"Generating '{my_config.output_file}'...")
generate_dataset(my_config)
print("Dataset generation completed!")

Configuration Options

  • languages: List of language codes (e.g., ['en', 'ko', 'fr']).
  • samples_per_language: Number of probe samples to generate per language.
  • output_file: Path to the output JSONL file.
  • seed: Optional seed for deterministic results.

Requirements

  • datasets
  • transformers
  • torch (for tokenization)

License

This project is licensed under the Apache-2.0 license.

Contributing

Contributions are welcome! Please open issues or pull requests on the GitHub repository.

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

finesse_benchmark_database-0.1.13.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

finesse_benchmark_database-0.1.13-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file finesse_benchmark_database-0.1.13.tar.gz.

File metadata

  • Download URL: finesse_benchmark_database-0.1.13.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.7 Windows/11

File hashes

Hashes for finesse_benchmark_database-0.1.13.tar.gz
Algorithm Hash digest
SHA256 ce7af8061b25f2e948ee3da3b0fb6cc9d1082f839de11405bdbc8e18bd1fe693
MD5 575b14e1cdf126f75af8aec51332d7ab
BLAKE2b-256 97100259caf920ee8f87f6f98c840a3e3ea16b7fc28c5012188a20bc86888bb4

See more details on using hashes here.

File details

Details for the file finesse_benchmark_database-0.1.13-py3-none-any.whl.

File metadata

File hashes

Hashes for finesse_benchmark_database-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 dd42fdce246f7f11d42fa3ad0ae104dc848cc6e11b1cbb9dd709985220d54329
MD5 cbe453f35fe8f58fc7a106a60917d376
BLAKE2b-256 2f8f06511e7560e0b7e75810e276542b9778f4cfa5af6fc0b1a3d97a7a975f40

See more details on using hashes here.

Supported by

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