Instructions to use neuropark/sahajBERT-NER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use neuropark/sahajBERT-NER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="neuropark/sahajBERT-NER")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("neuropark/sahajBERT-NER") model = AutoModelForTokenClassification.from_pretrained("neuropark/sahajBERT-NER", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload commited on
Commit ·
3011fd8
1
Parent(s): 61e0a74
Step 19169
Browse files- README.md +3 -3
- config.json +2 -2
- pytorch_model.bin +1 -1
README.md
CHANGED
|
@@ -60,7 +60,7 @@ WIP
|
|
| 60 |
|
| 61 |
## Training data
|
| 62 |
|
| 63 |
-
The model was initialized with pre-trained weights of [sahajBERT](https://huggingface.co/neuropark/sahajBERT-NER) at step
|
| 64 |
|
| 65 |
## Training procedure
|
| 66 |
|
|
@@ -73,11 +73,11 @@ Coming soon!
|
|
| 73 |
|
| 74 |
## Eval results
|
| 75 |
|
| 76 |
-
accuracy: 0.
|
| 77 |
|
| 78 |
f1: 0.9515892420537897
|
| 79 |
|
| 80 |
-
loss: 0.
|
| 81 |
|
| 82 |
precision: 0.9474196689386563
|
| 83 |
|
|
|
|
| 60 |
|
| 61 |
## Training data
|
| 62 |
|
| 63 |
+
The model was initialized with pre-trained weights of [sahajBERT](https://huggingface.co/neuropark/sahajBERT-NER) at step 19169 and trained on the bengali split of [WikiANN ](https://huggingface.co/datasets/wikiann)
|
| 64 |
|
| 65 |
## Training procedure
|
| 66 |
|
|
|
|
| 73 |
|
| 74 |
## Eval results
|
| 75 |
|
| 76 |
+
accuracy: 0.9728682170542635
|
| 77 |
|
| 78 |
f1: 0.9515892420537897
|
| 79 |
|
| 80 |
+
loss: 0.19455023109912872
|
| 81 |
|
| 82 |
precision: 0.9474196689386563
|
| 83 |
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "albertvillanova/autonlp-wikiann-entity_extraction-
|
| 3 |
"_num_labels": 7,
|
| 4 |
"architectures": [
|
| 5 |
"AlbertForTokenClassification"
|
|
@@ -36,7 +36,7 @@
|
|
| 36 |
"6": 6
|
| 37 |
},
|
| 38 |
"layer_norm_eps": 1e-12,
|
| 39 |
-
"max_length":
|
| 40 |
"max_position_embeddings": 512,
|
| 41 |
"model_type": "albert",
|
| 42 |
"net_structure_type": 0,
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "albertvillanova/autonlp-wikiann-entity_extraction-0d675eb-1281107",
|
| 3 |
"_num_labels": 7,
|
| 4 |
"architectures": [
|
| 5 |
"AlbertForTokenClassification"
|
|
|
|
| 36 |
"6": 6
|
| 37 |
},
|
| 38 |
"layer_norm_eps": 1e-12,
|
| 39 |
+
"max_length": 256,
|
| 40 |
"max_position_embeddings": 512,
|
| 41 |
"model_type": "albert",
|
| 42 |
"net_structure_type": 0,
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 67605209
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d49012ab934ab252223f215d50f7117057f11f56fcc82874fc90b4259f63c4d
|
| 3 |
size 67605209
|