jieba_parser
Jieba parser for full-text search.
jieba_parser · Jieba parser for full-text search.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100390 | jieba_parser | jieba_parser | 1.0 | FTS | Unknown | C++ |
Usage
Sources:
- Upstream README
- Version 1.0 install SQL
- C++ and embedded Python implementation
- Python 2.7 build configuration
jieba_parser 1.0 is a 2014 full-text-search parser that embeds Python and calls the Python Jieba package for Chinese tokenization and keyword extraction.
Parser configuration
Only evaluate a repaired, dependency-pinned build in a disposable backend:
The text search configuration is a separate database object; account for it when dropping or upgrading the extension.
Caveats
- The Makefile is hard-coded to Python 2.7 and uses Python 2-only APIs. Python 2 is end-of-life, and this source does not build unchanged with supported Python 3 releases.
- The shared library initializes Python and imports Jieba during global object construction. Import and call failures are guarded by C assertions rather than PostgreSQL errors; release builds can continue with null pointers and crash a backend.
- Two global objects both own interpreter lifecycle calls. Embedding or finalizing the same interpreter alongside other Python-using extensions is not safely coordinated.
- jieba_rank accepts a vector and query but always returns zero. It is not a usable ranking function.
- Tokenization and extracted tags depend on the separately installed Jieba package, dictionary, and model version. Pin those assets for reproducible indexes and rebuild affected text-search indexes after intentional changes.
- Upstream has no license file or current PostgreSQL compatibility evidence. Prefer a maintained parser rather than deploying this implementation as published.