Skip to content

Commit

Permalink
Update train_transformer.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
ASEM000 committed Apr 9, 2024
1 parent f512f1c commit c684c66
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/notebooks/train_transformer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Load the dataset"
"### Load the dataset"
]
},
{
Expand All @@ -448,7 +448,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Tokenizer"
"### Tokenizer"
]
},
{
Expand Down Expand Up @@ -489,7 +489,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Dataloader"
"### Dataloader"
]
},
{
Expand Down Expand Up @@ -946,7 +946,11 @@
" text_en = test_dataset[index][\"translation\"][\"en\"]\n",
" text_en_pred = translate_from_arabic_to_english(text_ar, key=jr.PRNGKey(0))\n",
"\n",
" print(f\"input arabic: {text_ar}\\n\" f\"true english: {text_en}\\n\" f\"pred english: {text_en_pred}\\n\")"
" print(\n",
" f\"input arabic: {text_ar}\\n\"\n",
" f\"true english: {text_en}\\n\"\n",
" f\"pred english: {text_en_pred}\\n\"\n",
" )"
]
}
],
Expand Down

0 comments on commit c684c66

Please sign in to comment.