LucioleData-2M / README.md
styal's picture
Update README.md
0dc4287 verified
metadata
dataset_info:
  features:
    - name: text
      dtype: string
  splits:
    - name: train
      num_bytes: 7312277132
      num_examples: 2029517
  download_size: 4291600198
  dataset_size: 7312277132
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*
from datasets import load_dataset
faq = load_dataset(
    "styal/filtered-finephrase-faq",
    split="train[:50%]",
)
tutorial = load_dataset(
    "styal/filtered-finephrase-tutorial", 
    split="train[:50%]",
)
table = load_dataset(
    "styal/filtered-finephrase-table",
    split="train[:50%]",
)
math = load_dataset(
    "styal/filtered-finephrase-math",
    split="train[:40%]",
)
py = load_dataset(
    "styal/filtered-python-edu.eng", 
    split="train[:20%]",
)
faq = faq.remove_columns([col for col in faq.column_names if col != "text"])
math = math.remove_columns([col for col in math.column_names if col != "text"])
table = table.remove_columns([col for col in table.column_names if col != "text"])
tutorial = tutorial.remove_columns([col for col in tutorial.column_names if col != "text"])
py = py.remove_columns([col for col in py.column_names if col != "text"])
from datasets import concatenate_datasets
merged = concatenate_datasets([faq, math, table, py, tutorial])