Instructions to use SaulLu/recreate-history with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SaulLu/recreate-history with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="SaulLu/recreate-history")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("SaulLu/recreate-history") model = AutoModelForTokenClassification.from_pretrained("SaulLu/recreate-history", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Step 3639
Browse files- README.md +11 -1
- config.json +53 -0
- pytorch_model.bin +3 -0
README.md
CHANGED
|
@@ -73,7 +73,17 @@ Coming soon!
|
|
| 73 |
|
| 74 |
## Eval results
|
| 75 |
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
### BibTeX entry and citation info
|
| 79 |
|
|
|
|
| 73 |
|
| 74 |
## Eval results
|
| 75 |
|
| 76 |
+
accuracy: 0.9473110465116279
|
| 77 |
+
|
| 78 |
+
f1: 0.8946476144344877
|
| 79 |
+
|
| 80 |
+
loss: 0.2516360282897949
|
| 81 |
+
|
| 82 |
+
precision: 0.8824653607262303
|
| 83 |
+
|
| 84 |
+
recall: 0.9071709233791748
|
| 85 |
+
|
| 86 |
+
|
| 87 |
|
| 88 |
### BibTeX entry and citation info
|
| 89 |
|
config.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "albertvillanova/autonlp-wikiann-entity_extraction-b151299-102879",
|
| 3 |
+
"_num_labels": 7,
|
| 4 |
+
"architectures": [
|
| 5 |
+
"AlbertForTokenClassification"
|
| 6 |
+
],
|
| 7 |
+
"attention_probs_dropout_prob": 0,
|
| 8 |
+
"bos_token_id": 2,
|
| 9 |
+
"classifier_dropout_prob": 0.1,
|
| 10 |
+
"down_scale_factor": 1,
|
| 11 |
+
"embedding_size": 128,
|
| 12 |
+
"eos_token_id": 3,
|
| 13 |
+
"gap_size": 0,
|
| 14 |
+
"hidden_act": "gelu_new",
|
| 15 |
+
"hidden_dropout_prob": 0,
|
| 16 |
+
"hidden_size": 1024,
|
| 17 |
+
"id2label": {
|
| 18 |
+
"0": "0",
|
| 19 |
+
"1": "1",
|
| 20 |
+
"2": "2",
|
| 21 |
+
"3": "3",
|
| 22 |
+
"4": "4",
|
| 23 |
+
"5": "5",
|
| 24 |
+
"6": "6"
|
| 25 |
+
},
|
| 26 |
+
"initializer_range": 0.02,
|
| 27 |
+
"inner_group_num": 1,
|
| 28 |
+
"intermediate_size": 4096,
|
| 29 |
+
"label2id": {
|
| 30 |
+
"0": 0,
|
| 31 |
+
"1": 1,
|
| 32 |
+
"2": 2,
|
| 33 |
+
"3": 3,
|
| 34 |
+
"4": 4,
|
| 35 |
+
"5": 5,
|
| 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,
|
| 43 |
+
"num_attention_heads": 16,
|
| 44 |
+
"num_hidden_groups": 1,
|
| 45 |
+
"num_hidden_layers": 24,
|
| 46 |
+
"num_memory_blocks": 0,
|
| 47 |
+
"pad_token_id": 0,
|
| 48 |
+
"padding": "max_length",
|
| 49 |
+
"position_embedding_type": "absolute",
|
| 50 |
+
"transformers_version": "4.6.1",
|
| 51 |
+
"type_vocab_size": 2,
|
| 52 |
+
"vocab_size": 32000
|
| 53 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d07ee98573d390a881a4cd60f43a735c99b5a7de4526094398c02d07d4e17d5
|
| 3 |
+
size 67605209
|