HarryCovert commited on
Commit
9a16de8
1 Parent(s): 1ff3512

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -1
README.md CHANGED
@@ -23,4 +23,26 @@ widget:
23
  example_title: "Mouche - ravageur"
24
  - text: "Vacances de Noël : les touristes français visitent Paris à bord d’un bateau mouche."
25
  example_title: "Mouche - bateau"
26
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  example_title: "Mouche - ravageur"
24
  - text: "Vacances de Noël : les touristes français visitent Paris à bord d’un bateau mouche."
25
  example_title: "Mouche - bateau"
26
+ ---
27
+
28
+ ### How to use
29
+
30
+ You can use this model directly with a pipeline for token classification:
31
+
32
+ ```python
33
+ >>>from transformers import pipeline
34
+ >>>pipe = pipeline(model="ChouBERT/ChouBERT-16-plant-health-ner", aggregation_strategy="simple")
35
+ >>>pipe(" Attaque de rouille brune en Dordogne sur du blé tendre variété Oregrain !")
36
+ []
37
+ >>>pipe("Soupe de poisson toute prête de carrefour avec fromage râpé, croûtons à l'ail et rouille #TeamFeignasse.")
38
+ [{'entity_group': 'Maladie',
39
+ 'score': 0.80249035,
40
+ 'word': '',
41
+ 'start': 11,
42
+ 'end': 12},
43
+ {'entity_group': 'Maladie',
44
+ 'score': 0.80133665,
45
+ 'word': 'rouille brune',
46
+ 'start': 12,
47
+ 'end': 25}]
48
+ ```