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.1.tar.gz (40.1 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.1-py3-none-any.whl (38.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alfredo_ai-0.1.1.tar.gz
  • Upload date:
  • Size: 40.1 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.1.tar.gz
Algorithm Hash digest
SHA256 795c88d6a63cd6ef573f922ecab68580aca486f973720dc5bc146493df209ddf
MD5 b11ce8b9ab48c4694bf57fbc5b941141
BLAKE2b-256 3b01e5e4327a0d0db9ee12fee87f721ebdbd39103f3c6f72a612c7108b84c48b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alfredo_ai-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4b4481470adee484e295059f279d5fdee54e67f5ea9535d1576f50f77fa0b22
MD5 a7edfe30ea07424fc494965d2643f5e5
BLAKE2b-256 69af35925ab835e19c0596257f7d7e9bf8eec8fe7074e492064f327a1babc5c1

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.3

2 files

This release

0.1.1 This release

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