| #!/usr/bin/env python3 | |
| """ | |
| Example script to demonstrate the usage of the finesse-benchmark-database package. | |
| This script creates a simple configuration and generates a probes_atomic.jsonl file. | |
| """ | |
| from finesse_benchmark_database.config import ProbeConfig | |
| from finesse_benchmark_database.main import generate_dataset | |
| LANGUAGES = [ | |
| 'en', | |
| 'ko', | |
| 'es', | |
| 'ja', | |
| 'ru', | |
| 'zh', | |
| 'ar', | |
| 'id', | |
| 'de', | |
| 'vi', | |
| ] | |
| if __name__ == "__main__": | |
| # Define a simple configuration for demonstration | |
| demo_config = ProbeConfig( | |
| languages=LANGUAGES, # Start with English for simplicity | |
| samples_per_language=5000, | |
| output_file='probes.jsonl', # Output file for the demo | |
| seed=42 # Fixed seed for reproducibility | |
| ) | |
| print(f"Generating demo dataset: '{demo_config.output_file}'") | |
| print("This will create a small probes_atomic.jsonl file using Wikipedia data.") | |
| # Generate the dataset | |
| generate_dataset(demo_config) | |
| print("Demo generation completed! Check 'demo_probes.jsonl' for the output.") | |
| print("You can now inspect the file or integrate this into your Finesse benchmark workflow.") |