Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
b5c6d3d4
Unverified
Commit
b5c6d3d4
authored
Apr 28, 2020
by
Stefan Schweter
Committed by
GitHub
Apr 28, 2020
Browse files
notebooks: minor fix for community provided models example (#4025)
parent
2fade302
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
notebooks/02-transformers.ipynb
notebooks/02-transformers.ipynb
+1
-1
No files found.
notebooks/02-transformers.ipynb
View file @
b5c6d3d4
...
...
@@ -554,7 +554,7 @@
"de_tokenizer = BertTokenizer.from_pretrained(\"dbmdz/bert-base-german-cased\")\n",
"\n",
"de_input = de_tokenizer.encode_plus(\n",
" \"Hugging Face ist eine
n
französische Firma
M
it
arbeitern
in New-York.\",\n",
" \"Hugging Face ist eine französische Firma
m
it
Sitz
in New-York.\",\n",
" return_tensors=\"pt\"\n",
")\n",
"output_de, pooled_de = de_bert(**de_input)"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment