Dataset Viewer
Auto-converted to Parquet
query-id
stringclasses
5 values
corpus-id
stringclasses
5 values
score
int64
1
1
00000
000000000
1
00001
000000001
1
00002
000000002
1
00003
000000003
1
00004
000000004
1

JapaneseCode1Retrieval-sample

A sample dataset for Japanese-English code retrieval evaluation. This dataset contains Japanese natural language descriptions paired with Python code snippets.

Task category

Retrieval

Domains

Programming, Code Generation

Dataset Structure

The dataset follows the standard MTEB retrieval format:

  • corpus/corpus-00000-of-00001.parquet: 5 Python code documents with fields _id, title, text
  • queries/queries-00000-of-00001.parquet: 5 Japanese queries with fields _id, text
  • data/test-00000-of-00001.parquet: 5 relevance judgments with fields query-id, corpus-id, score

Usage

You can evaluate an embedding model on this sample dataset using the following code:

import mteb

# Load the sample dataset
task = mteb.get_task("JapaneseCode1Retrieval-sample")
evaluator = mteb.MTEB(tasks=[task])

# Run evaluation with your model
model = mteb.get_model("your-model-name")
results = evaluator.run(model)

Sample Content

This sample dataset contains:

  • 5 Japanese natural language queries describing programming tasks
  • 5 corresponding Python code snippets
  • 5 relevance judgments connecting queries to code

The data has been slightly modified for demonstration purposes.

License

Please refer to the CC BY-SA 4.0 license terms.

Downloads last month
-