Skip to content

Quick Start Guide

5-Minute Setup

1. Install Mistral NER

pip install -e ".[cuda12]"

2. Download Pre-trained Model (Optional)

# Download a pre-trained model
python scripts/download_model.py --model mistral-ner-conll2003

3. Run Inference

# On a single text
python scripts/inference.py \
    --model-path mistral-ner-conll2003 \
    --text "Apple Inc. CEO Tim Cook announced new products in Cupertino."

# Output:
# Apple Inc. [ORG] CEO Tim Cook [PER] announced new products in Cupertino [LOC].

4. Train Your Own Model

# Using default configuration
python scripts/train.py

# Monitor training
tensorboard --logdir logs/

Next Steps