arubenruben commited on
Commit
819d66d
1 Parent(s): 776fd18

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +54 -1
README.md CHANGED
@@ -8,4 +8,57 @@ metrics:
8
  pipeline_tag: token-classification
9
  datasets:
10
  - harem
11
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  pipeline_tag: token-classification
9
  datasets:
10
  - harem
11
+ ---
12
+
13
+
14
+ # Portuguese NER BERT-CRF HAREM Default
15
+
16
+ This model is a fine-tuned BERT model adapted for Named Entity Recognition (NER) tasks. It utilizes Conditional Random Fields (CRF) as the decoder.
17
+
18
+ The model follows the HAREM Selective labeling scheme for NER. Additionally, it provides options for HAREM Default and Conll-2003 labeling schemes.
19
+
20
+ ## How to Use
21
+
22
+ You can employ this model using the Transformers library's *pipeline* for NER, or incorporate it as a conventional Transformer in the HuggingFace ecosystem.
23
+
24
+ ```python
25
+ from transformers import pipeline
26
+ import torch
27
+ import nltk
28
+
29
+ ner_classifier = pipeline(
30
+ "ner",
31
+ model="arubenruben/NER-PT-BERT-CRF-HAREM-Selective",
32
+ device=torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu"),
33
+ trust_remote_code=True
34
+ )
35
+
36
+ text = "FCPorto vence o Benfica por 5-0 no Estádio do Dragão"
37
+ tokens = nltk.wordpunct_tokenize(text)
38
+ result = ner_classifier(tokens)
39
+ ```
40
+
41
+ ## Demo
42
+
43
+ There is a [Notebook](https://github.com/arubenruben/PT-Pump-Up/blob/master/BERT-CRF.ipynb) available to test our code.
44
+
45
+ ## PT-Pump-Up
46
+
47
+ This model is integrated in the project [PT-Pump-Up](https://github.com/arubenruben/PT-Pump-Up)
48
+
49
+ ## Evaluation
50
+
51
+ #### Testing Data
52
+
53
+ The model was tested on the Miniharem Testset.
54
+
55
+ ### Results
56
+
57
+ F1-Score: 0.832
58
+
59
+ ## Citation
60
+
61
+ Citation will be made available soon.
62
+
63
+ **BibTeX:**
64
+ :(