discopy-nlp
CommunityCompose NLP with DisCoPy string diagrams.
Authormanutej
Version1.0.0
Installs0
System Documentation
What problem does it solve?
DisCoPy NLP provides Python implementations of string diagrams and monoidal categories for compositional NLP, enabling rigorous, diagrammatic reasoning about meaning assembly beyond traditional pipeline approaches.
Core Features & Use Cases
- Type-safe diagram construction: Build and compose Types (Ty), Boxes, and Diagrams to represent lexical and grammatical composition.
- Diagram visualization: Render and export string diagrams to inspect semantic assembly.
- Academic prototyping: Explore categorical grammars, functorial semantics, and quantum-inspired NLP models in research settings.
Quick Start
Install the DiscOPY Python package with pip and run simple examples to compose meanings and visualize diagrams. For example, install with pip install discopy and then import Ty, Box, Diagram from discopy to begin.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: discopy-nlp Download link: https://github.com/manutej/categorical-meta-prompting/archive/main.zip#discopy-nlp Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.