Concept Extractor
C++ person-name concept extractor split out from RAG/ragz.
What Is Included
- C++ graph extractor sources and headers in
cpp/src/graphandcpp/include/graph - pybind11 binding in
cpp/bindings/graph.cpp - Python wrapper in
concept_extractor/graph - Russian Snowball stemmer sources in
cpp/third_party/libstemmer_ru - self-contained C++ rule test in
cpp/tests - DVC pointers for OpenCorpora graph assets in
assets/graph
Tokenization code, old wheel releases, generated pybuild outputs, and unrelated tests are intentionally not copied.
Build C++ Tests
cmake -S . -B build -DBUILD_PYTHON=OFF
cmake --build build --parallel
ctest --test-dir build --output-on-failure
Build Python Package
pip install -v --no-build-isolation .
Install From PyPI
pip install concept-extractor
Use From Python
from concept_extractor.graph import PersonExtractor
extractor = PersonExtractor("assets/graph/opcorpora-parsed")
concepts = extractor.extract_batch(["Встреча с Алексеем Черниковым."])
Run Example
cd ..
python3 -m pip install -e ./concept_extractor
python3 examples/example.py
# or explicitly:
python3 examples/example.py --dict-dir ./assets/opcorpora-parsed
Assets
Large OpenCorpora files are tracked via DVC pointers:
dvc pull assets/graph/opcorpora-parsed.tar.dvc
tar -xf assets/graph/opcorpora-parsed.tar -C assets/graph
Metadata
Release files for aryjikov-concept-extractor 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aryjikov_concept_extractor-0.1.1.tar.gz | 8.5 MB | Without provenance | Details for aryjikov_concept_extractor-0.1.1.tar.gz |
Release files / aryjikov_concept_extractor-0.1.1.tar.gz
| Download URL | aryjikov_concept_extractor-0.1.1.tar.gz |
|---|---|
| Size | 8.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d8ac59f420fb6810d119eb0209637dc9362be2c05691b4b2904823f28b49ab7
|
|
BLAKE2b-256 checksum How to use checksums |
bde3538be41f6da6edadf7d0fa8673c2079d58a067d85ce00de1df8a6eb50332
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.12.7 Linux/6.17.0-35-generic
|
Security for aryjikov-concept-extractor 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.