hadiaskari98
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,27 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
base_model:
|
6 |
+
- google-bert/bert-large-cased
|
7 |
+
pipeline_tag: token-classification
|
8 |
+
library_name: transformers
|
9 |
+
---
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
|
14 |
+
**How to use**
|
15 |
+
|
16 |
+
|
17 |
+
```from transformers import AutoTokenizer, AutoModelForTokenClassification
|
18 |
+
|
19 |
+
tokenizer = AutoTokenizer.from_pretrained("hadiaskari98/SOFTWARE_NER_Fixed")
|
20 |
+
model = AutoModelForTokenClassification.from_pretrained("hadiaskari98/SOFTWARE_NER_Fixed")
|
21 |
+
|
22 |
+
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
|
23 |
+
|
24 |
+
example = "Python is my favourite programing language."
|
25 |
+
|
26 |
+
ner_results = nlp(example)
|
27 |
+
print(ner_results)
|