YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
How to use
Install dependencies: pip install -r requirements.txt
Set your MongoDB URI in config.py
In your backend, just do:
from ner_pipeline import analyze_and_store
result = analyze_and_store("تيمقاد في باتنة") print(result)
The function will:
- Run the NER model on the text
- Extract and clean entities
- Store the result in MongoDB
- Return the structured record
Output format
{ "site_name": "تيمقاد", "wilaya": "باتنة", "type": null, "period": "رومانية", "description": [], "sentiment": null, "raw_entities": [...], "_id": "mongo_id" }
- Downloads last month
- 3
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support