Skip to content

fixed comments in fig_4_bert.ipynb #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions notebooks/fig_4_bert.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
}
],
"source": [
"# Mark each of the 22 tokens as belonging to sentence \"1\".\n",
"# Mark each of the 23 tokens as belonging to sentence \"1\".\n",
"segments_ids = [1] * len(tokenized_text)\n",
"\n",
"print(segments_ids)"
Expand Down Expand Up @@ -560,10 +560,10 @@
}
],
"source": [
"# Stores the token vectors, with shape [22 x 768]\n",
"# Stores the token vectors, with shape [23 x 768]\n",
"embeddings = []\n",
"\n",
"# `token_embeddings` is a [22 x 12 x 768] tensor.\n",
"# `token_embeddings` is a [23 x 12 x 768] tensor.\n",
"\n",
"# For each token in the sentence...\n",
"for token in token_embeddings:\n",
Expand Down