Summarization Sumy
- Filtering out unwanted phrases before summarization.
- Prioritizing specific comments containing phrases like "Automation Failed" or "Automation Success."
Here’s the updated code with comments for each change:
Explanation of Key Functions
filter_comments: Removes unwanted phrases from eachRTSK Worknote.prioritize_comments: Identifies sentences with priority phrases and moves them to the top in the final summary.summarize_with_sumy: Uses Sumy to generate a concise summary of the filtered worknotes for each group.
Additional Notes
- Adjust
num_sentencesinsummarize_with_sumybased on the summary length needed. - The
priority_phraseslist can be expanded with more keywords as required.
No comments