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 ·
d3461de
1
Parent(s): b4e04ec
Step 11129
Browse files- README.md +6 -6
- 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,15 +73,15 @@ Coming soon!
|
|
| 73 |
|
| 74 |
## Eval results
|
| 75 |
|
| 76 |
-
accuracy: 0.
|
| 77 |
|
| 78 |
-
f1: 0.
|
| 79 |
|
| 80 |
-
loss: 0.
|
| 81 |
|
| 82 |
-
precision: 0.
|
| 83 |
|
| 84 |
-
recall: 0.
|
| 85 |
|
| 86 |
|
| 87 |
|
|
|
|
| 60 |
|
| 61 |
## Training data
|
| 62 |
|
| 63 |
+
The model was initialized with pre-trained weights of [sahajBERT](https://huggingface.co/neuropark/sahajBERT-NER) at step 11129 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.9721414728682171
|
| 77 |
|
| 78 |
+
f1: 0.9547123623011015
|
| 79 |
|
| 80 |
+
loss: 0.1560986340045929
|
| 81 |
|
| 82 |
+
precision: 0.9516837481698389
|
| 83 |
|
| 84 |
+
recall: 0.9577603143418467
|
| 85 |
|
| 86 |
|
| 87 |
|
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-567271e-112968",
|
| 3 |
"_num_labels": 7,
|
| 4 |
"architectures": [
|
| 5 |
"AlbertForTokenClassification"
|
|
|
|
| 36 |
"6": 6
|
| 37 |
},
|
| 38 |
"layer_norm_eps": 1e-12,
|
| 39 |
+
"max_length": 96,
|
| 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:1e68c27e2565767645be1c18e8803433f867049c879002019711108a9a9feff5
|
| 3 |
size 67605209
|