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

pull/569/head
ys64 9 months ago committed by GitHub
parent 5783656852
commit 7cda7e2df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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",

Loading…
Cancel
Save