Downloads · 30 days
0
0% of all-time downloads
izardy/en_spacy_ner_finetuned_news_article
en_spacy_ner_finetuned_news_article is a machine learning model from izardy. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a spaCy NER model trained on English news data to identify named entities.
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
362
Public
Repo size
1.6 GB
Likes
0
Public
Click a slice to open those files.
Other1.2 GB · 60%
From the Hugging Face model README
| Feature | Description |
|---|---|
| Name | en_spacy_ner_finetuned_news_article |
| Version | 0.0.0 |
| spaCy | >=3.8.3,<3.9.0 |
| Default Pipeline | transformer, ner |
| Components | transformer, ner |
| Vectors | 0 keys, 0 unique vectors (0 dimensions) |
| Sources | https://theedgemalaysia.com/ |
| License | n/a |
| Author | Izardy |
This is a spaCy NER model trained on English news data to identify named entities.
The model was trained on annotated news articles.
<details> <summary>View label scheme (15 labels for 1 components)</summary>
- <sup>PERSON: People, including fictional.</sup>
- <sup>NORP: Nationalities or religious or political groups.</sup>
- <sup>FAC: Buildings, airports, highways, bridges, etc.</sup>
- <sup>ORG: Companies, agencies, institutions, etc.</sup>
- <sup>GPE: Countries, cities, states.</sup>
- <sup>LOC: Non-GPE locations, mountain ranges, bodies of water.</sup>
- <sup>PRODUCT: Objects, vehicles, foods, etc. (Not services.)</sup>
- <sup>EVENT: Named hurricanes, battles, wars, sports events, etc.</sup>
- <sup>WORK_OF_ART: Titles of books, songs, etc.</sup>
- <sup>LAW: Named documents made into laws.</sup>
- <sup>LANGUAGE: Any named language.</sup>
- <sup>DATE: Absolute or relative dates or periods.</sup>
- <sup>TIME: Times smaller than a day.</sup>
- <sup>PERCENT: Percentage, including ”%“.</sup>
- <sup>MONEY: Monetary values, including unit.</sup>
- <sup>QUANTITY: Measurements, as of weight or distance.</sup>
- <sup>ORDINAL: “first”, “second”, etc.</sup>
- <sup>CARDINAL: Numerals that do not fall under another type.</sup>
| Component | Labels |
|---|---|
ner | EVENT, FAC, GPE, LAW, LOC, MONEY, NORP, ORDINAL, ORG, PERCENT, PERSON, PRODUCT, QUANTITY, TIME, WORK_OF_ART |
=========================== Initializing pipeline ===========================
✔ Initialized pipeline
============================= Training pipeline =============================
ℹ Pipeline: ['transformer', 'ner']
ℹ Initial learn rate: 0.0
E # LOSS TRANS... LOSS NER ENTS_F ENTS_P ENTS_R SCORE
--- ------ ------------- -------- ------ ------ ------ ------
0 0 1027.60 2028.92 0.00 0.00 0.01 0.00
0 200 225652.63 77443.33 17.55 20.90 15.12 0.18
0 400 34799.92 12790.88 69.73 69.77 69.69 0.70
0 600 16755.79 9699.92 74.23 69.75 79.32 0.74
1 800 5509.15 8061.05 77.48 72.91 82.65 0.77
1 1000 5524.08 8379.61 78.38 72.42 85.41 0.78
1 1200 4490.30 7921.10 81.05 77.75 84.65 0.81
2 1400 4319.48 6579.05 81.78 79.93 83.72 0.82
2 1600 3331.55 6981.83 80.43 72.27 90.67 0.80
2 1800 2940.46 6159.03 82.06 75.51 89.86 0.82
3 2000 2940.73 5604.61 84.07 83.55 84.58 0.84
3 2200 5573.14 6000.54 85.11 82.78 87.57 0.85
3 2400 2792.99 5804.08 85.59 83.59 87.69 0.86
...
22 13600 236.77 340.90 97.73 97.00 98.47 0.98
22 13800 221.60 333.28 98.20 97.99 98.42 0.98
| Type | Score |
|---|---|
ENTS_F | 98.20 |
ENTS_P | 97.99 |
ENTS_R | 98.42 |
TRANSFORMER_LOSS | 221.60 |
NER_LOSS | 333.28 |
import spacy
nlp = spacy.load("your-username/your-model-name")
doc = nlp("Your text here")
for ent in doc.ents:
print(ent.text, ent.label_)