Universal NLP Base¶
This project now uses a cross-industry, non-custom extraction baseline.
Components¶
- Generic lexicons (file-based)
app/lexicons/common/overview_terms.txtapp/lexicons/common/requirement_terms.txt-
app/lexicons/common/scoring_terms.txt -
Signal engine
app/core/universal_nlp_base.py-
Provides:
has_overview_signal(text, page_index)has_requirement_signal(text)has_scoring_signal(text)
-
Signal adapter
app/core/extraction_signals.py- Keeps old call sites stable, delegates to the universal engine.
Tokenizer backend¶
Backend order:
1. pkuseg (if installed and available)
2. jieba (if installed)
3. regex tokenizer fallback (always available)
You can force backend with env var:
You can also override lexicon directory:
Optional ecosystem packages¶
These are common in industry for a generic Chinese NLP baseline:
pkusegjiebaOpenHowNetfasttext-wheel
Current runtime only requires optional pkuseg/jieba; it degrades safely if missing.