Skip to content

Commit

Permalink
Removed limit on sample n
Browse files Browse the repository at this point in the history
  • Loading branch information
alezanga committed Sep 21, 2023
1 parent e3d9735 commit 477711e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nlp/deep_learning/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def create_hf_dataset(target: str = "M", add_synthetic: bool = False) -> tuple[D
"""
dataset = train_val_test(target=target, add_synthetic_train=add_synthetic)

data_hf = {k: {"text": v["x"][:200], "label": v["y"][:200]} for k, v in dataset.items()}
data_hf = {k: {"text": v["x"], "label": v["y"]} for k, v in dataset.items()}

feat = Features({
"text": Value("string"),
Expand Down

0 comments on commit 477711e

Please sign in to comment.