Skip to content

Commit

Permalink
Merge pull request #54 from PaddlePaddle/shanzhuo-patch
Browse files Browse the repository at this point in the history
Fix tutorial
  • Loading branch information
xiaoyao4573 authored Dec 18, 2020
2 parents 11bfb9f + 96b5ebf commit aea3101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tutorials/drug_target_interaction_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@
"source": [
"protein_seq = np.array(protein_seq, dtype=np.int64)\n",
"if max_protein_len > 0:\n",
" protein_token_ids = np.zeros(max_protein_len) + ProteinTokenizer.padding_token_ID\n",
" protein_token_ids = np.zeros(max_protein_len) + ProteinTokenizer.padding_token_id\n",
" n = min(max_protein_len, len(protein_seq))\n",
" protein_token_ids[:n] = np.array(protein_seq)[:n]\n",
" protein_seq = protein_token_ids"
Expand Down
2 changes: 1 addition & 1 deletion tutorials/drug_target_interaction_tutorial_cn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@
"source": [
"protein_seq = np.array(protein_seq, dtype=np.int64)\n",
"if max_protein_len > 0:\n",
" protein_token_ids = np.zeros(max_protein_len) + ProteinTokenizer.padding_token_ID\n",
" protein_token_ids = np.zeros(max_protein_len) + ProteinTokenizer.padding_token_id\n",
" n = min(max_protein_len, len(protein_seq))\n",
" protein_token_ids[:n] = np.array(protein_seq)[:n]\n",
" protein_seq = protein_token_ids"
Expand Down

0 comments on commit aea3101

Please sign in to comment.