asahi417 commited on
Commit
21f794f
1 Parent(s): 3b2c8cc

model update

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