mirror of
https://github.com/openai/openai-cookbook
synced 2024-11-11 13:11:02 +00:00
3210b38e35
I have added handling for the last chunk in the split_into_sentences function. Previously, the function did not account for the last chunk, which could lead to incomplete sentences in the output. To solve this, I added a conditional statement to check if the last chunk is non-empty. If it is, I append it to the list of chunks with a period to ensure the last sentence is complete. This change improves the accuracy of the split_into_sentences function and ensures that all sentences in the input text are properly segmented. Please review and let me know if you have any feedback or concerns. |
||
---|---|---|
.. | ||
requirements.txt | ||
web-qa.ipynb | ||
web-qa.py |