Skip to content

Commit

Permalink
fix typo in processor keyword argument.
Browse files Browse the repository at this point in the history
the ktext.preprocess.processor constructor has a keyword argument `heuristic_pct_padding` while this notebook switches the 'u' and 'e' and passes `hueristic_pct_padding` which causes an error.
  • Loading branch information
andrewnc authored Jul 10, 2019
1 parent b138304 commit fc3cd2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebooks/2 - Train Function Summarizer With Keras + TF.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@
"from ktext.preprocess import processor\n",
"\n",
"if not use_cache: \n",
" code_proc = processor(hueristic_pct_padding=.7, keep_n=20000)\n",
" code_proc = processor(heuristic_pct_padding=.7, keep_n=20000)\n",
" t_code = code_proc.fit_transform(train_code)\n",
"\n",
" comment_proc = processor(append_indicators=True, hueristic_pct_padding=.7, keep_n=14000, padding ='post')\n",
" comment_proc = processor(append_indicators=True, heuristic_pct_padding=.7, keep_n=14000, padding ='post')\n",
" t_comment = comment_proc.fit_transform(train_comment)\n",
"\n",
"elif use_cache:\n",
Expand Down

0 comments on commit fc3cd2d

Please sign in to comment.