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.11.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.11-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: finesse_benchmark_database-0.1.11.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.11.tar.gz
Algorithm Hash digest
SHA256 dd0a43378161b4e8211d5095b5c9bc49af5c0b0600a25844d9784646de402e6e
MD5 f2991aac0acea20feb258855626b600a
BLAKE2b-256 878462da00d1355cb9df533347c82eab98c38cc1d49ca9ec4a3db5b0755f310a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for finesse_benchmark_database-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 a107d40d20e8b25c6d5fbd128448c36ebe911f26f5cec5768a9bfde9c6c0b99b
MD5 a468c33df62aa79683e7607aaf6ad4c5
BLAKE2b-256 66c2d5aa9c214244b620878722ff4e2f3d135c3ab243ab7f1c10a77333ff6b03

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