DEV Community

David Condrey
David Condrey

Posted on

๐Ÿš€ Introducing BridgeNLP: A Minimal, Universal Adapter for Seamless AI and NLP Integration

Hi everyone!

Iโ€™m thrilled to announce the release of bridgenlp, a Python package Iโ€™ve developed to help you connect advanced AI models and NLP pipelines with minimal friction.

๐ŸŒŸ What Is BridgeNLP?

BridgeNLP is a universal adapter framework that lets you plug cutting-edge models (like AllenNLP, Hugging Face, and multimodal tools) directly into structured pipelines like spaCy. Itโ€™s designed for:

  • โœ… NLP tasks like coreference resolution, semantic role labeling, named entity recognition
  • โœ… Multimodal tasks like image captioning, object detection, and text-image alignment
  • โœ… Developers who care about memory safety, modularity, and clean integration

โš™๏ธ Key Features

  • ๐Ÿ›  Minimal dependencies (just spaCy + NumPy by default)
  • ๐Ÿงฉ Modular design โ€” add only the adapters you need
  • ๐ŸŒ Multilingual + multimodal support
  • โšก Memory-efficient, production-ready code
  • ๐Ÿ“š Well-documented, thoroughly tested

๐Ÿ”ฅ Quick Install

pip install bridgenlp
Enter fullscreen mode Exit fullscreen mode

Need extras?

pip install bridgenlp[allennlp]
pip install bridgenlp[huggingface]
pip install bridgenlp[multimodal]
Enter fullscreen mode Exit fullscreen mode

๐Ÿ’ป Example Use

Hook up AllenNLP coreference to your spaCy pipeline:

import spacy
from bridgenlp.adapters.allen_coref import AllenNLPCorefBridge
from bridgenlp.pipes.spacy_pipe import SpacyBridgePipe

nlp = spacy.load("en_core_web_sm")
coref_bridge = AllenNLPCorefBridge()
nlp.add_pipe("bridgenlp", config={"bridge": coref_bridge})

doc = nlp("Julie hugged David because she missed him.")
for cluster in doc._.nlp_bridge_clusters:
    print("Coreference cluster:", [doc[start:end].text for start, end in cluster])
Enter fullscreen mode Exit fullscreen mode

*๐Ÿ“ฆ Why Should You Care?
*

If youโ€™ve ever:

  • Tried gluing together different AI/NLP libraries and cursed at the incompatibilities
  • Wanted to add powerful models to a project without heavyweight frameworks
  • Needed seamless token alignment across languages or modalities

โ€ฆBridgeNLP is for you.

๐ŸŒ Learn More

๐Ÿ“ฆ PyPI: https://pypi.org/project/bridgenlp/0.5.0/
๐Ÿ’ป GitHub: https://github.com/dcondrey/BridgeNLP

๐Ÿ™ How You Can Help

Iโ€™d love:

Bug reports and feature requests
Collaborators interested in pushing this to the next level

If this resonates, give it a spin, star the repo, or share with someone who needs it!

Top comments (0)