deepsearch-glm
Graph Language Models
What it is and what it does
deepsearch-glm is a Python library for extracting structured linguistic information—entities, relations, terms, and sentences—from unstructured text and documents using pretrained neural language models. It processes raw text or JSON-converted documents to identify and annotate linguistic elements like named entities, expressions, and numeric values, then optionally constructs knowledge graphs from these extracted components across document collections.
The package provides two main workflows: direct NLP analysis on text snippets or full documents (returning pandas DataFrames with entity types, confidence scores, and character offsets), and graph construction from entity and relation annotations across multiple documents. It includes utilities for working with Deep Search document conversion and offers both Python bindings and C++ executables for batch processing.
Use it for:
- Extract named entities, terms, and linguistic structures from research papers or technical documents for downstream analysis.
- Build knowledge graphs from patent or scientific literature collections to map relationships between concepts and entities.
- Analyze document collections to identify and annotate domain-specific terminology and expressions at scale.
- Convert unstructured text into structured, queryable linguistic annotations for information retrieval or semantic search.
- Enrich PDF documents with NLP metadata (entities, relations, confidence scores) for indexing or downstream ML pipelines.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Extracts entities, relations, and linguistic structures from text and documents using pretrained NLP models, then constructs knowledge graphs from the extracted information.
Yes, if you need entity and relation extraction from documents and are comfortable with a dormant package. The library offers broad Python version support and prebuilt wheels for easy installation, but the 613-day gap since the last release and lack of recent maintenance signals suggest limited ongoing support. Install only if the core NLP and graph-building features match your needs and you can tolerate potential staleness.
Install
deepsearch-glm on PyPI
pip
pip install deepsearch-glmuv
uv add deepsearch-glmpoetry
poetry add deepsearch-glmInstalling deepsearch-glm
Before you install
Medium install friction due to prebuilt wheels for Python 3.9–3.13 across macOS, Linux, and Windows, but the package is dormant (613 days since last release) with no recent maintenance signals.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the original license notice.
Quickstart
pip install deepsearch-glm
from deepsearch_glm.utils.load_pretrained_models import load_pretrained_nlp_models
from deepsearch_glm.nlp_utils import init_nlp_model
load_pretrained_nlp_models(force=False, verbose=False)
mdl = init_nlp_model()
result = mdl.apply_on_text("France is a country in Western Europe.")
Pretrained models are downloaded on first use; pywin32 is a runtime dependency on Windows systems.
Verify before relying
- Whether the dormant status (613 days since release) indicates active maintenance or abandonment.
- Whether pretrained model downloads work reliably or require external configuration.
- Performance characteristics and supported document formats beyond the PDF examples shown.
- Whether the deepsearch-toolkit optional dependency is required for core NLP functionality or only for advanced features.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.9) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — pywin32 |
| Maintenance | dormant — 613 days since the last release |
| First released | |
| Downloads | 92,161/month — #13,472 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: deepsearch_glm-1.0.0-cp310-cp310-macosx_13_0_x86_64.whl; deepsearch_glm-1.0.0-cp310-cp310-macosx_14_0_arm64.whl; deepsearch_glm-1.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; deepsearch_glm-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; deepsearch_glm-1.0.0-cp310-cp310-win_amd64.whl; deepsearch_glm-1.0.0-cp311-cp311-macosx_13_0_x86_64.whl; deepsearch_glm-1.0.0-cp311-cp311-macosx_14_0_arm64.whl; deepsearch_glm-1.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; deepsearch_glm-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; deepsearch_glm-1.0.0-cp311-cp311-win_amd64.whl; deepsearch_glm-1.0.0-cp312-cp312-macosx_13_0_x86_64.whl; deepsearch_glm-1.0.0-cp312-cp312-macosx_14_0_arm64.whl; deepsearch_glm-1.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; deepsearch_glm-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; deepsearch_glm-1.0.0-cp312-cp312-win_amd64.whl; deepsearch_glm-1.0.0-cp313-cp313-macosx_13_0_x86_64.whl; deepsearch_glm-1.0.0-cp313-cp313-macosx_14_0_arm64.whl; deepsearch_glm-1.0.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; deepsearch_glm-1.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; deepsearch_glm-1.0.0-cp313-cp313-win_amd64.whl
Tags
More Linguistic packages
Detects and normalizes text encoding from…
permissive · top 100 on PyPI
tiktokentiktoken is a fast BPE tokenizer that converts…
permissive · top 1,000 on PyPI
chardetDetects character encoding and language in byte…
permissive · top 1,000 on PyPI
text-unidecodeConverts Unicode text to ASCII by…
copyleft · top 1,000 on PyPI
larkLark is a parsing library that builds abstract…
permissive · top 1,000 on PyPI
tree-sitterPython bindings to the tree-sitter parsing…
permissive · top 1,000 on PyPI
langchain-graph-retrieverRetrieves documents from a graph structure…
permissive · top 15,000 on PyPI
textacytextacy extends spaCy's NLP capabilities with…
permissive · top 15,000 on PyPI
rake-nltkExtracts keywords and key phrases from text…
permissive · top 15,000 on PyPI
graphiti-coreGraphiti builds and queries temporal context…
permissive · top 5,000 on PyPI
nltkNLTK is a Python library for natural language…
permissive · top 1,000 on PyPI
graphragGraphRAG extracts structured knowledge graphs…
permissive · top 15,000 on PyPI
minisbdDetects sentence boundaries in text across many…
agpl · top 15,000 on PyPI
langextractLangExtract uses LLMs to extract and ground…
permissive · top 15,000 on PyPI
recognizers-text-date-timeRecognizes and resolves date and time entities…
permissive · top 15,000 on PyPI
harvestersHarvester simplifies image acquisition from…
permissive · top 15,000 on PyPI