Views
No views yet
fr_core_news_lg + tok2vec → pipeline NER fine-tuné (ce modèle)bert-base-multilingual-cased → pipeline alternatif via config.cfg (GPU requis)| Label | Source CSV | Exemple |
|---|---|---|
PRODUCT | name | Joust Duffle Bag |
SKU | sku | 24-MB01 |
QUANTITY | (commande) | 5, 12 |
CATEGORY | categories | Gear, Hoodies & Sweatshirts |
1import spacy
2nlp = spacy.load("Kahouli/magento-ner-b2b")
3doc = nlp("Je voudrais 5 Joust Duffle Bag catégorie Gear")
4for ent in doc.ents:
5 print(ent.text, ent.label_)