Skip to content

Commit

Permalink
Make the code in Soft Cosine Measure notebook more compact
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Jan 28, 2018
1 parent 3cf154e commit 621ed0d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/notebooks/soft_cosine_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,9 @@
"metadata": {},
"outputs": [],
"source": [
"sentence_obama = 'Obama speaks to the media in Illinois'\n",
"sentence_president = 'The president greets the press in Chicago'\n",
"sentence_orange = 'Oranges are my favorite fruit'\n",
"sentence_obama = sentence_obama.lower().split()\n",
"sentence_president = sentence_president.lower().split()\n",
"sentence_orange = sentence_orange.lower().split()"
"sentence_obama = 'Obama speaks to the media in Illinois'.lower().split()\n",
"sentence_president = 'The president greets the press in Chicago'.lower().split()\n",
"sentence_orange = 'Oranges are my favorite fruit'.lower().split()"
]
},
{
Expand Down

0 comments on commit 621ed0d

Please sign in to comment.