Pythonaibrain-NLP 0.2.0 Is Now on PyPI โ€” A Structured NLU/NLG Architecture for Python
DEV Community

Pythonaibrain-NLP 0.2.0 Is Now on PyPI - A Structured NLU/NLG Architecture for Python

Today I'm releasing Pythonaibrain-NLP 0.2.0, the latest public release of my Python NLP framework. The package is now available on PyPI, and the complete source code, documentation, architecture notes, examples, and tests are available on GitHub.

Install it with:

pip install pythonaibrain-nlp

Why another NLP framework?

Pythonaibrain-NLP was built around a different idea. Instead of making a transformer the center of everything, I wanted to build a more structured NLP system where understanding, dialogue state, retrieval, and generation are explicit components of the architecture.

The current system combines:

  • Neural intent classification
  • Slot filling
  • Dialogue context
  • Retrieval-augmented responses
  • Neural language generation
  • A controllable NLG architecture
  • Standalone NLU and NLG APIs

The goal isn't to replace every modern NLP architecture. The goal is to provide a structured, understandable, trainable NLP pipeline that can be integrated into Python applications.

The architecture

The core pipeline is:

User Input
โ”‚
โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ NLU         โ”‚
โ”‚             โ”‚
โ”‚ Intent      โ”‚
โ”‚ + Slots     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ”‚
       โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Dialogue State  โ”‚
โ”‚ + Context       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
    โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”
    โ–ผ         โ–ผ
Function/API  RAG
Dispatch      Retrieval
    โ”‚         โ”‚
    โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜
         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ NLG         โ”‚
โ”‚ SC-LSTM     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ”‚
       โ–ผ
Response

This separation makes each stage independently accessible and easier to experiment with.

NLU

The NLU subsystem uses a joint neural architecture for:

  • Intent classification + slot tagging

The model is designed to understand both what the user wants and which pieces of information

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.