Model Pipeline - NER with spaCy
This pipeline detects named entities like names, places, and dates in text using spaCy's NER model. It reads raw text, processes it to find entities, and outputs labeled text with entity types.
Jump into concepts and practice - no test required
This pipeline detects named entities like names, places, and dates in text using spaCy's NER model. It reads raw text, processes it to find entities, and outputs labeled text with entity types.
Loss
1.0 |***************
0.8 |**********
0.6 |*******
0.4 |****
0.2 |**
0.0 +--------------
1 2 3 4 5 Epochs| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | 0.85 | 0.60 | Model starts learning to recognize entities, loss is high, accuracy low. |
| 2 | 0.60 | 0.75 | Loss decreases, accuracy improves as model learns entity patterns. |
| 3 | 0.45 | 0.82 | Model shows better entity recognition, loss continues to drop. |
| 4 | 0.35 | 0.88 | Training converges, accuracy approaches high performance. |
| 5 | 0.30 | 0.90 | Final epoch with good accuracy and low loss. |
import spacy
nlp = spacy.load('en_core_web_sm')
doc = nlp('Apple is looking at buying U.K. startup for $1 billion')
entities = [(ent.text, ent.label_) for ent in doc.ents]
print(entities)import spacy
doc = nlp('Google is a tech giant')