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

Uploaded Python 3

File details

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

File metadata

  • Download URL: finesse_benchmark_database-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 abcbdbae185a3ee57cf37565a7a3e2a0bf212ae6985d3a699606abf231de6de0
MD5 46479c9b0a374138bb8efc6df42c044f
BLAKE2b-256 a6448871ddfee1bdcb33ebada0642124440f1da8046970ae7d3ba472fc402fa0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for finesse_benchmark_database-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d35b423d1c3d5b6bbdde16df09444a3eb101d1f5e1d4e2fff018c923ef16e84
MD5 8157ec920c55085e06a0115ba78fb7fe
BLAKE2b-256 ce1de624f9747dd7c1037e744c1e065763dcaf9c4137a4d0280597d7eca848c2

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