MUmairAB commited on
Commit
96033cd
1 Parent(s): 2572a63

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -0
README.md CHANGED
@@ -31,6 +31,25 @@ It achieves the following results on the evaluation set:
31
  - Validation Loss: 0.0880
32
  - Epoch: 19
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  ## Model description
36
 
 
31
  - Validation Loss: 0.0880
32
  - Epoch: 19
33
 
34
+ ## How to use this model
35
+
36
+ ```
37
+ #Install the transformers library
38
+ !pip install transformers
39
+
40
+ #Import the pipeline
41
+ from transformers import pipeline
42
+
43
+ #Import the model from HuggingFace
44
+ checkpoint = "MUmairAB/bert-ner"
45
+ model = pipeline(task="token-classification",
46
+ model=checkpoint)
47
+
48
+ #Use the model
49
+ raw_text = "My name is umair and i work at Swits AI in Antarctica."
50
+ model(raw_text)
51
+
52
+ ```
53
 
54
  ## Model description
55