add the last chunk to the list of chunks in web-qa.ipynb (#691)

This commit is contained in:
ys64 2023-09-11 14:54:40 -07:00 committed by GitHub
parent 5783656852
commit 7cda7e2df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -780,6 +780,10 @@
" chunk.append(sentence)\n",
" tokens_so_far += token + 1\n",
"\n",
" # Add the last chunk to the list of chunks\n",
" if chunk:\n",
" chunks.append(\". \".join(chunk) + \".\")\n",
"\n",
" return chunks\n",
" \n",
"\n",