model update
Browse files
README.md
CHANGED
@@ -78,14 +78,7 @@ Full evaluation can be found at [metric file of NER](https://huggingface.co/tner
|
|
78 |
and [metric file of entity span](https://huggingface.co/tner/deberta-v3-large-bc5cdr/raw/main/eval/metric_span.json).
|
79 |
|
80 |
### Usage
|
81 |
-
This model can be used through the
|
82 |
-
```python
|
83 |
-
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
84 |
-
tokenizer = AutoTokenizer.from_pretrained("tner/deberta-v3-large-bc5cdr")
|
85 |
-
model = AutoModelForTokenClassification.from_pretrained("tner/deberta-v3-large-bc5cdr")
|
86 |
-
```
|
87 |
-
but, since transformers do not support CRF layer, it is recommended to use the model via `T-NER` library.
|
88 |
-
Install the library via pip
|
89 |
```shell
|
90 |
pip install tner
|
91 |
```
|
@@ -93,8 +86,9 @@ and activate model as below.
|
|
93 |
```python
|
94 |
from tner import TransformersNER
|
95 |
model = TransformersNER("tner/deberta-v3-large-bc5cdr")
|
96 |
-
model.predict("Jacob Collier is a Grammy awarded English artist from London"
|
97 |
```
|
|
|
98 |
|
99 |
### Training hyperparameters
|
100 |
|
|
|
78 |
and [metric file of entity span](https://huggingface.co/tner/deberta-v3-large-bc5cdr/raw/main/eval/metric_span.json).
|
79 |
|
80 |
### Usage
|
81 |
+
This model can be used through the [tner library](https://github.com/asahi417/tner). Install the library via pip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
```shell
|
83 |
pip install tner
|
84 |
```
|
|
|
86 |
```python
|
87 |
from tner import TransformersNER
|
88 |
model = TransformersNER("tner/deberta-v3-large-bc5cdr")
|
89 |
+
model.predict(["Jacob Collier is a Grammy awarded English artist from London"])
|
90 |
```
|
91 |
+
It can be used via transformers library but it is not recommended as CRF layer is not supported at the moment.
|
92 |
|
93 |
### Training hyperparameters
|
94 |
|