diff --git a/08_vector_representations.ipynb b/08_vector_representations.ipynb index 31b6b9c..d436a16 100644 --- a/08_vector_representations.ipynb +++ b/08_vector_representations.ipynb @@ -77,7 +77,7 @@ }, { "cell_type": "code", - "execution_count": 67, + "execution_count": 79, "metadata": {}, "outputs": [ { @@ -118,7 +118,7 @@ }, { "cell_type": "code", - "execution_count": 78, + "execution_count": 90, "metadata": {}, "outputs": [ { @@ -128,10 +128,10 @@ "Tekst 'cat' jest konwertowany do tokenu 9246\n", "\n", "Tokenizacja\n", - "{'input_ids': [33215], 'attention_mask': [1]}\n", + "{'input_ids': [9246], 'attention_mask': [1]}\n", "\n", "Detokenizacja\n", - "computer\n", + "cat\n", "\n", "Liczba tokenów w słowniku\n", "50257\n" @@ -141,9 +141,9 @@ "source": [ "print(\"Tekst 'cat' jest konwertowany do tokenu 9246\")\n", "print(\"\\nTokenizacja\")\n", - "print(tokenizer(\"computer\"))\n", + "print(tokenizer(\"cat\"))\n", "print(\"\\nDetokenizacja\")\n", - "print(tokenizer.decode([33215]))\n", + "print(tokenizer.decode([9246]))\n", "print(\"\\nLiczba tokenów w słowniku\")\n", "print(len(tokenizer))" ] @@ -274,7 +274,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 89, "metadata": {}, "outputs": [ {