langflow-ai / langflow

Langflow is a low-code app builder for RAG and multi-agent AI applications. It’s Python-based and agnostic to any model, API, or database.
http://www.langflow.org
MIT License
35.92k stars 4.25k forks source link

feat(components): integrate Spacy NLP toolset into Langflow component… #4733

Open raphaelchristi opened 1 week ago

raphaelchristi commented 1 week ago

SpaCy Components Integration

This PR integrates SpaCy's powerful NLP capabilities into Langflow through a comprehensive set of components, enabling advanced text processing and analysis workflows.

🎯 Core Components

Language Model Management

Entity Processing

Text Analysis

Text Processing

🔍 Example Flows

Lemmatizer Flow

Lemmatizer Flow Test text:

The researchers were running multiple groundbreaking studies while the automated 
systems continuously processed the incoming data. Children's toys scattered 
across the floor were quickly gathered by the cleaning robots, which had been 
programmed to recognize various objects.

Download Lemmatizer Flow JSON

Dependency Matcher Flow

Dependency Matcher Flow Pattern Example:

[
    {
        "RIGHT_ID": "verb",
        "RIGHT_ATTRS": {"POS": "VERB"}
    },
    {
        "LEFT_ID": "verb",
        "REL_OP": ">",
        "RIGHT_ID": "subject",
        "RIGHT_ATTRS": {"DEP": "nsubj"}
    }
]

Download Dependency Matcher Flow JSON

Sentencizer Flow

Sentencizer Flow Features:

Text Categorizer Flow

Text Categorizer Flow Supports:

Tagger Flow

Tagger Flow Tag types:

Entity Ruler Flow

Entity Ruler Flow Pattern types:

Entity Recognizer Flow

Entity Recognizer Flow Entity types:

🛠️ Technical Details

Implementation Features

📊 Sample Data

🔗 Related Resources

👥 Contributors

📃 License