Documentation¶
gdelt-regkg reconstructs GDELT Global Knowledge Graph (GKG) records from prepared article text and supplied metadata. Generate complete 27-column records or analyze individual fields from Python. The library approximates GDELT's processing for text-derived fields and formats caller-supplied metadata according to the GKG format.
What the library does¶
Use the library to process your own news datasets, fill gaps in available records or analyze texts using different NLP methods. Supply plain-text article bodies and metadata, then select dictionaries and models for the fields you need. The library supports English extraction and optional translation, with native-language Global Content Analysis Measures (GCAM) dictionaries for applicable source languages.
The implementation is independent of the GDELT Project, so constructed values can differ from similar GDELT outputs. Read Results and Limitations and intended use before treating them as interchangeable.
Dataset built with the library¶
ReGKG-2025 reconstructs article records for the June–July 2025 GKG outage using gdelt-regkg. The dataset page links to the downloadable release and paper and explains the format, provenance, limitations and citations.
Try a field¶
After installing the core package with python -m pip install gdelt-regkg, run:
from gdelt_regkg.fields.counts import analyze_counts
text = "12 people were killed."
result = analyze_counts(text)
print(result.to_gkg())
This example uses packaged rules and needs no downloaded model or dictionary. Quickstart also shows complete record generation and export.
Generate records from your articles¶
Start with Installation and setup, then follow Quickstart to setup basic pipeline. Check Generate records guide, it explains metadata, precomputed recognition results, overrides and export. Use GKG field reference to inspect the 27 columns.
For non-English bodies, Translation quide covers language detection and translation. Concepts and glossary can help with keywords, abbreviations, metrics and other concepts used throughout documentation.
Choose dictionaries and execution settings¶
Build resources guide explains resource preparation and profile selection. Build GCAM resources covers presets, individual dictionary imports and a complete expanded setup. Build gazetteers covers default and custom geographic references. Dictionaries describes the inventory and source terms, and Dictionary imports covers specialized conversions.
Use GPU setup for backend installation and device selection, Performance for batching and persistent caches, and Troubleshooting for dependency, model and resource errors.
Understand or reproduce the Results¶
The agreement study, Agreement Between Reconstructed and Native GDELT GKG Records: A Field-Level Baseline, evaluates reconstructed fields against native GKG records. See Citing the agreement study for its citation.
Results summarizes the paper and compares it with the earlier development benchmark. Methodology distinguishes the study design from the benchmark tools' reporting behavior. Benchmarking provides commands for comparing native and reconstructed records. Tone refinement covers fitting candidate dictionaries with separate development and evaluation articles.
Future work¶
- Add a Moses statistical translation adapter to
Translator. - Implement CLD2 in
LanguageDetector. - Extend GCAM dictionary profiles with language-specific tokenization, morphological normalization, contextual exclusions, and other dictionary-specific preprocessing.
Note
GDELT's 2015 Translingual architecture used CLD2, Moses statistical machine translation, and dictionary-based translation ranking. The 2021 Translingual 2.0 architecture introduced hybrid neural–statistical translation. Exact configurations for archived records are undocumented.
Citing the software¶
Cite the release used in your work. The citation for version 2.2.0 is:
@misc{klimin2026gdeltregkg,
author = {Klimin, Nikita A.},
title = {{gdelt-regkg}},
publisher = {Zenodo},
year = {2026},
month = oct,
howpublished = {Computer software},
version = {2.2.0},
note = {Version 2.2.0},
doi = {10.5281/zenodo.23314745}
}
For another release, use the metadata from its Zenodo record. Machine-readable citation metadata is also available in CITATION.cff. Cite the dictionaries and preprocessing tools used in your analysis separately.
Citing the agreement study¶
When discussing the field-level agreement evaluation, cite Nikita A. Klimin (2026), Agreement Between Reconstructed and Native GDELT GKG Records: A Field-Level Baseline:
@misc{klimin2026agreement,
author = {Klimin, Nikita A.},
title = {Agreement Between Reconstructed and Native {GDELT} {GKG} Records: A Field-Level Baseline},
year = {2026},
eprint = {2610.35358},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
doi = {10.48550/arXiv.2610.35358},
url = {https://arxiv.org/abs/2610.35358}
}
The paper evaluates 193,550 English articles from 2020–2025 and 2,500 articles in five other languages. Results summarizes its findings; the larger, earlier English corpus is documented under Development benchmark. Use the paper's stated samples and metrics when citing its findings. Cite the software release as well when using the package.
Reference and development¶
- CLI documents commands, arguments and defaults.
- Migration explains upgrades to the current API.
- Development setup covers dependencies, local checks, tests and extraction evaluation.
- Project structure describes the source modules and repository layout.
- Build the documentation covers previews, checks and publishing.
- Contributing ↗ covers issues, pull requests, external inputs and GitHub Pages setup.
- Changelog ↗ records releases and historical experiments.