add the last chunk to the list of chunks in web-qa.ipynb (#691)
This commit is contained in:
parent
5783656852
commit
7cda7e2df7
1 changed files with 4 additions and 0 deletions
|
|
@ -780,6 +780,10 @@
|
||||||
" chunk.append(sentence)\n",
|
" chunk.append(sentence)\n",
|
||||||
" tokens_so_far += token + 1\n",
|
" tokens_so_far += token + 1\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
" # Add the last chunk to the list of chunks\n",
|
||||||
|
" if chunk:\n",
|
||||||
|
" chunks.append(\". \".join(chunk) + \".\")\n",
|
||||||
|
"\n",
|
||||||
" return chunks\n",
|
" return chunks\n",
|
||||||
" \n",
|
" \n",
|
||||||
"\n",
|
"\n",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue