Prog1 WS 2021/22: Automatic Text Summary — prog1-ws21-summarizer6
./src/main.py -h # print help
./src/main.py -i ./test/test-en.txt # summarize ./test/test-en.txt
./src/main.py -i ./test/test-en.txt -o ./tmp/out.txt -n 3 # summarize to 3 sentences and save the summary
echo -e "first line.\nsecond line" | ./src/main.py -i - # you can also summarize using pipes
./src/ui.py # Start UI
Python3
Gtk4
PyGObject
libadwaita
nltk
flatpak-builder or meson (for building)
cx_Freeze (for building win32)
see docs/windows.md
You can install the Flatpak, which includes everything you need, like this:
flatpak install https://flatpak.nils.moe/repo/appstream/de.haigruppe.summarizer.flatpakref
If you've never installed a Flatpak, follow the setup guide first.
You can build and run from GNOME Builder. Alternatively, use the following commands to build with meson or with flatpak-builder.
Make sure you have all dependencies installed, then you can run the following:
meson configure build
cd build
meson compile
meson install
flatpak-builder --install-deps-from=flathub --force-clean build-dir de.haigruppe.summarizer.json
flatpak-builder --user --install --force-clean build-dir de.haigruppe.summarizer.json
- Gtk4 Docs: https://docs.gtk.org/gtk4/
- libadwaita Docs: https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1-latest/
- Python Gtk4 Tutorial: https://github.com/Taiko2k/GTK4PythonTutorial
- Python Gtk4 Example: https://github.com/timlau/gtk4-python
- Cambalache (UI Designer): https://gitlab.gnome.org/jpu/cambalache