jeanpoll
commited on
Commit
•
e73fe7b
1
Parent(s):
fd3c994
small correction on readme file
Browse files
README.md
CHANGED
@@ -6,7 +6,7 @@ widget:
|
|
6 |
- text: "Je m'appelle jean-baptiste et j'habite à montréal depuis fevr 2012"
|
7 |
---
|
8 |
|
9 |
-
# camembert-ner: model fine-tuned from camemBERT for NER task.
|
10 |
|
11 |
## Introduction
|
12 |
|
@@ -14,19 +14,19 @@ widget:
|
|
14 |
Model was trained on enriched version of wikiner-fr dataset (~170 634 sentences).
|
15 |
|
16 |
On my test data (mix of chat and email), this model got an f1 score of ~83% (in comparison dateparser was ~70%).
|
17 |
-
Dateparser library can still be be used on the output of this model in order to convert text to python datetime object
|
18 |
-
https://dateparser.readthedocs.io/en/latest/
|
19 |
|
20 |
|
21 |
-
## How to use camembert-ner with HuggingFace
|
22 |
|
23 |
-
##### Load camembert-ner and its sub-word tokenizer :
|
24 |
|
25 |
```python
|
26 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
27 |
|
28 |
-
tokenizer = AutoTokenizer.from_pretrained("Jean-Baptiste/camembert-ner")
|
29 |
-
model = AutoModelForTokenClassification.from_pretrained("Jean-Baptiste/camembert-ner")
|
30 |
|
31 |
|
32 |
##### Process text sample (from wikipedia)
|
|
|
6 |
- text: "Je m'appelle jean-baptiste et j'habite à montréal depuis fevr 2012"
|
7 |
---
|
8 |
|
9 |
+
# camembert-ner: model fine-tuned from camemBERT for NER task (including DATE tag).
|
10 |
|
11 |
## Introduction
|
12 |
|
|
|
14 |
Model was trained on enriched version of wikiner-fr dataset (~170 634 sentences).
|
15 |
|
16 |
On my test data (mix of chat and email), this model got an f1 score of ~83% (in comparison dateparser was ~70%).
|
17 |
+
Dateparser library can still be be used on the output of this model in order to convert text to python datetime object
|
18 |
+
(https://dateparser.readthedocs.io/en/latest/).
|
19 |
|
20 |
|
21 |
+
## How to use camembert-ner-with-dates with HuggingFace
|
22 |
|
23 |
+
##### Load camembert-ner-with-dates and its sub-word tokenizer :
|
24 |
|
25 |
```python
|
26 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
27 |
|
28 |
+
tokenizer = AutoTokenizer.from_pretrained("Jean-Baptiste/camembert-ner-with-dates")
|
29 |
+
model = AutoModelForTokenClassification.from_pretrained("Jean-Baptiste/camembert-ner-with-dates")
|
30 |
|
31 |
|
32 |
##### Process text sample (from wikipedia)
|