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

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.12.tar.gz (10.9 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.12-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: finesse_benchmark_database-0.1.12.tar.gz
  • Upload date:
  • Size: 10.9 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.12.tar.gz
Algorithm Hash digest
SHA256 dddb03ae2abf86a1c93a2d6c24f6126bf1a377cdb5a9e16121612825984a81cf
MD5 8a419ebf853603210ea5319518d78b38
BLAKE2b-256 899c6a748877b9bb7a0dd375de81a669d912afdfb8a2e462550569df3a189826

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for finesse_benchmark_database-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 c0d7f5bce1851e865285e0369f6e33be5ae88091744a938b66bdfcbe192689a2
MD5 a69ae88bb0d4e91133da4c927c5784e4
BLAKE2b-256 1314b7dbf1e0ddf122e18824135461686278703f64e13423e52dcf2665718cbb

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