Skip to content

Commit

Permalink
Fixed typos: replaced 'tree' with 'text'
Browse files Browse the repository at this point in the history
  • Loading branch information
codeandfire committed Sep 8, 2021
1 parent 1059a5f commit 12cb4bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sst_02_hand_built_features.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
" Returns\n",
" -------\n",
" defaultdict\n",
" A map from strings to their counts in `tree`. (Counter maps a\n",
" A map from strings to their counts in `text`. (Counter maps a\n",
" list to a dict of counts of the elements in that list.)\n",
"\n",
" \"\"\"\n",
Expand Down
4 changes: 2 additions & 2 deletions sst_03_neural_networks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"outputs": [],
"source": [
"def vsm_phi(text, lookup, np_func=np.mean):\n",
" \"\"\"Represent `tree` as a combination of the vector of its words.\n",
" \"\"\"Represent `text` as a combination of the vector of its words.\n",
"\n",
" Parameters\n",
" ----------\n",
Expand All @@ -178,7 +178,7 @@
" like `np.mean`, `np.sum`, or `np.prod`. The requirement is that\n",
" the function take `axis=0` as one of its arguments (to ensure\n",
" columnwise combination) and that it return a vector of a\n",
" fixed length, no matter what the size of the tree is.\n",
" fixed length, no matter what the size of the text is.\n",
"\n",
" Returns\n",
" -------\n",
Expand Down

0 comments on commit 12cb4bc

Please sign in to comment.