Ship the Summarizer
shipping the tool
Part of: AI Text Summarizer
Time to make it a real command-line tool: text in from a file or a pipe, a summary out, with the right strategy chosen automatically by length. Finish this lesson and the build lands in your Portfolio . Pick the strategy by size You've built three ways to summarize. A finished tool chooses among them based on how big the input is: - Short input: one call, done. - Medium input: chunk it, summarize each chunk, stitch the parts. - Very long input: full map-reduce. The thresholds are yours to tune; the point is the tool decides, so the user just hands it text. Wrap it in a CLI Read from a file argument or standard input, so it works both ways: Now python summarize.py article.txt and cat article.txt python summarize.py both work. That's a real tool: one command, any input, a summary out. What "shipped" means here Three tests, borrowed from the playbook: it runs from a clean start with one command, it survives an empty or weird input without crashing (your lesson-7 guards handle that), and someone else could use it from a one-line description. Hit those and it's a deliverable, not a demo. Into your Portfolio Finishing this lesson records the AI Text Summarizer in your Portfolio tab: titl
Challenge: Pick the Summarization Strategy