Commit ·
c4538a8
1
Parent(s): 26e912c
updated readme
Browse files
README.md
CHANGED
|
@@ -36,19 +36,21 @@ It achieves the following results on the evaluation set:
|
|
| 36 |
|
| 37 |
More information needed
|
| 38 |
|
| 39 |
-
## Intended uses & limitations
|
| 40 |
|
| 41 |
### Use a pipeline as a high-level helper
|
|
|
|
| 42 |
from transformers import pipeline
|
| 43 |
|
| 44 |
pipe = pipeline("token-classification", model="Azma-AI/bert-uncased-keyword-extractor")
|
|
|
|
| 45 |
|
| 46 |
### Load model directly
|
|
|
|
| 47 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
| 48 |
|
| 49 |
tokenizer = AutoTokenizer.from_pretrained("Azma-AI/bert-uncased-keyword-extractor")
|
| 50 |
model = AutoModelForTokenClassification.from_pretrained("Azma-AI/bert-uncased-keyword-extractor")
|
| 51 |
-
|
| 52 |
## Training and evaluation data
|
| 53 |
|
| 54 |
More information needed
|
|
|
|
| 36 |
|
| 37 |
More information needed
|
| 38 |
|
|
|
|
| 39 |
|
| 40 |
### Use a pipeline as a high-level helper
|
| 41 |
+
```python
|
| 42 |
from transformers import pipeline
|
| 43 |
|
| 44 |
pipe = pipeline("token-classification", model="Azma-AI/bert-uncased-keyword-extractor")
|
| 45 |
+
```
|
| 46 |
|
| 47 |
### Load model directly
|
| 48 |
+
```python
|
| 49 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
| 50 |
|
| 51 |
tokenizer = AutoTokenizer.from_pretrained("Azma-AI/bert-uncased-keyword-extractor")
|
| 52 |
model = AutoModelForTokenClassification.from_pretrained("Azma-AI/bert-uncased-keyword-extractor")
|
| 53 |
+
```
|
| 54 |
## Training and evaluation data
|
| 55 |
|
| 56 |
More information needed
|