AutoNLP Admin
commited on
Commit
·
33d212c
1
Parent(s):
8496096
Commit From AutoNLP
Browse files- .gitattributes +2 -0
- README.md +45 -0
- config.json +72 -0
- pytorch_model.bin +3 -0
- sample_input.pkl +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- vocab.txt +0 -0
.gitattributes
CHANGED
@@ -25,3 +25,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags: autonlp
|
3 |
+
language: pt
|
4 |
+
widget:
|
5 |
+
- text: "I love AutoNLP 🤗"
|
6 |
+
datasets:
|
7 |
+
- Emanuel/autonlp-data-pos-tag-bosque
|
8 |
+
co2_eq_emissions: 6.2107269129101805
|
9 |
+
---
|
10 |
+
|
11 |
+
# Model Trained Using AutoNLP
|
12 |
+
|
13 |
+
- Problem type: Entity Extraction
|
14 |
+
- Model ID: 21124427
|
15 |
+
- CO2 Emissions (in grams): 6.2107269129101805
|
16 |
+
|
17 |
+
## Validation Metrics
|
18 |
+
|
19 |
+
- Loss: 0.09813392907381058
|
20 |
+
- Accuracy: 0.9714309035997062
|
21 |
+
- Precision: 0.9721275936822545
|
22 |
+
- Recall: 0.9735345807918949
|
23 |
+
- F1: 0.9728305785123967
|
24 |
+
|
25 |
+
## Usage
|
26 |
+
|
27 |
+
You can use cURL to access this model:
|
28 |
+
|
29 |
+
```
|
30 |
+
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/models/Emanuel/autonlp-pos-tag-bosque-21124427
|
31 |
+
```
|
32 |
+
|
33 |
+
Or Python API:
|
34 |
+
|
35 |
+
```
|
36 |
+
from transformers import AutoModelForTokenClassification, AutoTokenizer
|
37 |
+
|
38 |
+
model = AutoModelForTokenClassification.from_pretrained("Emanuel/autonlp-pos-tag-bosque-21124427", use_auth_token=True)
|
39 |
+
|
40 |
+
tokenizer = AutoTokenizer.from_pretrained("Emanuel/autonlp-pos-tag-bosque-21124427", use_auth_token=True)
|
41 |
+
|
42 |
+
inputs = tokenizer("I love AutoNLP", return_tensors="pt")
|
43 |
+
|
44 |
+
outputs = model(**inputs)
|
45 |
+
```
|
config.json
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoNLP",
|
3 |
+
"_num_labels": 17,
|
4 |
+
"architectures": [
|
5 |
+
"BertForTokenClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.1,
|
8 |
+
"directionality": "bidi",
|
9 |
+
"gradient_checkpointing": false,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "ADJ",
|
15 |
+
"1": "ADP",
|
16 |
+
"2": "ADV",
|
17 |
+
"3": "AUX",
|
18 |
+
"4": "CCONJ",
|
19 |
+
"5": "DET",
|
20 |
+
"6": "INTJ",
|
21 |
+
"7": "NOUN",
|
22 |
+
"8": "NUM",
|
23 |
+
"9": "PART",
|
24 |
+
"10": "PRON",
|
25 |
+
"11": "PROPN",
|
26 |
+
"12": "PUNCT",
|
27 |
+
"13": "SCONJ",
|
28 |
+
"14": "SYM",
|
29 |
+
"15": "VERB",
|
30 |
+
"16": "X"
|
31 |
+
},
|
32 |
+
"initializer_range": 0.02,
|
33 |
+
"intermediate_size": 3072,
|
34 |
+
"label2id": {
|
35 |
+
"ADJ": 0,
|
36 |
+
"ADP": 1,
|
37 |
+
"ADV": 2,
|
38 |
+
"AUX": 3,
|
39 |
+
"CCONJ": 4,
|
40 |
+
"DET": 5,
|
41 |
+
"INTJ": 6,
|
42 |
+
"NOUN": 7,
|
43 |
+
"NUM": 8,
|
44 |
+
"PART": 9,
|
45 |
+
"PRON": 10,
|
46 |
+
"PROPN": 11,
|
47 |
+
"PUNCT": 12,
|
48 |
+
"SCONJ": 13,
|
49 |
+
"SYM": 14,
|
50 |
+
"VERB": 15,
|
51 |
+
"X": 16
|
52 |
+
},
|
53 |
+
"layer_norm_eps": 1e-12,
|
54 |
+
"max_length": 256,
|
55 |
+
"max_position_embeddings": 512,
|
56 |
+
"model_type": "bert",
|
57 |
+
"num_attention_heads": 12,
|
58 |
+
"num_hidden_layers": 12,
|
59 |
+
"output_past": true,
|
60 |
+
"pad_token_id": 0,
|
61 |
+
"padding": "max_length",
|
62 |
+
"pooler_fc_size": 768,
|
63 |
+
"pooler_num_attention_heads": 12,
|
64 |
+
"pooler_num_fc_layers": 3,
|
65 |
+
"pooler_size_per_head": 128,
|
66 |
+
"pooler_type": "first_token_transform",
|
67 |
+
"position_embedding_type": "absolute",
|
68 |
+
"transformers_version": "4.8.0",
|
69 |
+
"type_vocab_size": 2,
|
70 |
+
"use_cache": true,
|
71 |
+
"vocab_size": 29794
|
72 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:39d3a5ea467d3f5b2c089a47abd9a415c5c300695855accde27db91a7822d7de
|
3 |
+
size 433465905
|
sample_input.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d45d00d14ef34d7969c5d9a31ecdbfae59404d9e11052cf64e2515609f11a799
|
3 |
+
size 10084
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "special_tokens_map_file": "/root/.cache/huggingface/transformers/eecc45187d085a1169eed91017d358cc0e9cbdd5dc236bcd710059dbf0a2f816.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d", "name_or_path": "AutoNLP", "do_basic_tokenize": true, "never_split": null, "tokenizer_class": "BertTokenizer"}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|