YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

How to use

  1. Install dependencies: pip install -r requirements.txt

  2. Set your MongoDB URI in config.py

  3. In your backend, just do:

    from ner_pipeline import analyze_and_store

    result = analyze_and_store("تيمقاد في باتنة") print(result)

  4. 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
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using TheImed/ner-tourism-model 1