Commit History
-
feat: optional labels, bilingual auto-expansion, language hint (v2.0)
Robin +1: Claude Sonnet 4.6- app/labels.py (new): bilingual label pairs table, DEFAULT_LABELS, expand_bilingual() — auto-adds counterpart label for each known entry - app/models.py: labels optional (default []), add language field (auto/en/zh/ar/mixed), response now echoes labels_used - app/ner.py: integrate expand_bilingual + DEFAULT_LABELS; language-aware processing; span deduplication (_deduplicate) - app/main.py: pass language to NERService.extract(), return labels_used - tests/test_extract.py: expanded from 15 → 25 tests; cover Arabic, bilingual expansion, optional-labels, language field, labels_used echo - scripts/compare_models.py: bilingual labels in all cases, Markdown report - reports/comparison_report.md: model comparison results Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>372fe0c
-
feat: switch to knowledgator/gliner-multitask-large-v0.5 for multilingual NER
Robin +1: Claude Sonnet 4.6urchade/gliner_medium-v2.1 is English-only — Chinese entities (persons, orgs, locations) were almost entirely missed. The multitask-large model supports zh/en/ar and other languages out of the box. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>3cb6d87 -
deploy: pre-download model in Dockerfile, update README routes
Robin +1: Claude Sonnet 4.6- Dockerfile: bake GLiNER model into image at build time so cold-start needs no network and starts instantly on HF Spaces - README: update routes to /api/v1/, threshold to 0.6, add HF Space URL Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>e48047d
-
feat: add HF Spaces Docker deployment
Robin +1: Claude Sonnet 4.6- Dockerfile: Python 3.11-slim, port 7860 (HF Spaces required) - README.md: HF Spaces frontmatter (sdk: docker, app_port: 7860) - config.py: HF_ENDPOINT only applied when explicitly set, so HF Spaces reaches huggingface.co directly without the local mirror Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>3a87a16