Skip to main content

Alfredo

See exactly how TF-IDF, TextRank, and sentiment scoring work — with code you can read in 5 minutes — running at production speed.

Alfredo is not a wrapper around an LLM API. It's a self-contained, offline, dependency-light NLP toolkit built for two audiences at once: learners who want to see the actual math behind NLP tasks, and developers who want something fast enough to ship without API keys, network calls, or per-request costs.

Install

pip install alfredo-ai

Usage

import alfredo as nlp

nlp.summarize("Long article text...", num_sentences=2)
nlp.sentiment("This product is amazing!")
nlp.classify("Free money now!!!", labels=["spam", "not spam"])
nlp.extract_keywords("Machine learning is a subset of artificial intelligence...")

Why Alfredo

Goal Why it matters
No external AI API calls Works offline, no API key, no per-call cost, no network latency
Readable source code Every algorithm should be understandable in one sitting
Fast (NumPy-vectorized) Not "slow but educational" — usable in real projects
Documented reasoning docs/HOW_IT_WORKS.md explains the why, not just the what
Benchmarked Speed claims backed by numbers vs. nltk/spaCy/textblob

Benchmarks

Run python benchmarks/benchmark.py and paste real numbers here once available.

Task Alfredo nltk textblob
summarize
sentiment
extract_keywords

Development

pip install -e ".[dev]"
pytest tests/
python benchmarks/benchmark.py

License

MIT — see LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alfredo_ai-0.1.3.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alfredo_ai-0.1.3-py3-none-any.whl (38.3 kB view details)

Uploaded Python 3

File details

Details for the file alfredo_ai-0.1.3.tar.gz.

File metadata

  • Download URL: alfredo_ai-0.1.3.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for alfredo_ai-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e01bde4f21c5ab6e6065cfa51876dc7b922cdb74ee502705ab97f643ab86f933
MD5 76b6d3cb70092ad782e28c6c948512c4
BLAKE2b-256 9c98503ca5bb1258f05ddaffefeacb5c84ca7f7b00128ba2d0271a7d391b9552

See more details on using hashes here.

File details

Details for the file alfredo_ai-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: alfredo_ai-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 38.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for alfredo_ai-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f83188d176dab0ec205443311e9544e812522d95c2565744f0bee572a3a39b8f
MD5 465642cd2ae69fae27138b81857ec911
BLAKE2b-256 66192513a9176d0217488fdf0cfd60f296a377685f5e9faa8770391a7062d6ed

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page