This project implements a lightweight, fully offline summarization pipeline inspired by the TinyWorld Antigravity spec. It provides a hybrid, routed system with fast-path heuristics, a section-aware extractive summarizer, and a neural-stub interface for future training.
- Fully offline inference
- CPU-only, low memory
- Modular components
- Summarization focus
python -m examples.demoCLI:
python -m tinyworld.cli --text "Your text here" --max-sentences 3Web UI:
python -m tinyworld.webappThen open http://localhost:8080 in your browser.
tinyworld/input_ingestion.py: validation + normalizationtinyworld/preprocess.py: language detection (heuristic), tokenization, complexity scoringtinyworld/routing.py: routing logictinyworld/fastpath.py: dictionary and template hookstinyworld/heuristic.py: extractive summarizertinyworld/neural_stub.py: placeholder neural interfacetinyworld/summarizer.py: high-level pipelinetinyworld/cli.py: command-line entrytinyworld/webapp.py: local web server + API
- Uses only Python standard library.
- Neural model is a stub; designed for later training and integration.