Add missing arg in 02-transformers notebook (#5085)
* Add missing arg when creating model * Fix typos * Remove from_tf flag when creating model
This commit is contained in:
@@ -221,7 +221,7 @@
|
|||||||
},
|
},
|
||||||
"source": [
|
"source": [
|
||||||
"The code you saw in the previous section introduced all the steps required to do simple model invocation.\n",
|
"The code you saw in the previous section introduced all the steps required to do simple model invocation.\n",
|
||||||
"For more day-to-day usage, transformers provides you higher-level methods which will makes your NLP journey easier\n",
|
"For more day-to-day usage, transformers provides you higher-level methods which will makes your NLP journey easier.\n",
|
||||||
"Let's improve our previous example"
|
"Let's improve our previous example"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -268,7 +268,7 @@
|
|||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"As you can see above, the methode `encode_plus` provides a convenient way to generate all the required parameters\n",
|
"As you can see above, the method `encode_plus` provides a convenient way to generate all the required parameters\n",
|
||||||
"that will go through the model. \n",
|
"that will go through the model. \n",
|
||||||
"\n",
|
"\n",
|
||||||
"Moreover, you might have noticed it generated some additional tensors: \n",
|
"Moreover, you might have noticed it generated some additional tensors: \n",
|
||||||
|
|||||||
Reference in New Issue
Block a user