Instructions to use vabatista/geological-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vabatista/geological-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="vabatista/geological-ner")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("vabatista/geological-ner") model = AutoModelForTokenClassification.from_pretrained("vabatista/geological-ner") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "neuralmind/bert-base-portuguese-cased", | |
| "architectures": [ | |
| "BertForTokenClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "directionality": "bidi", | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "O", | |
| "1": "B-CAMPO", | |
| "2": "B-ROCHA", | |
| "3": "B-UNIDADE_LITO", | |
| "4": "I-UNIDADE_LITO", | |
| "5": "B-UNIDADE_CRONO", | |
| "6": "B-BACIA", | |
| "7": "I-BACIA", | |
| "8": "B-FLUIDODATERRA_i", | |
| "9": "I-UNIDADE_CRONO", | |
| "10": "I-CAMPO", | |
| "11": "B-ELEMENTO_PETRO", | |
| "12": "B-ESTRUTURA_F\u00cdSICA", | |
| "13": "B-N\u00c3OCONSOLID", | |
| "14": "B-FLUIDODATERRA_o", | |
| "15": "B-PO\u00c7O", | |
| "16": "I-FLUIDODATERRA_o", | |
| "17": "I-PO\u00c7O", | |
| "18": "B-FLUIDO", | |
| "19": "B-TEXTURA", | |
| "20": "I-ESTRUTURA_F\u00cdSICA", | |
| "21": "B-PO\u00c7O_R", | |
| "22": "I-FLUIDODATERRA_i", | |
| "23": "B-EVENTO_PETRO", | |
| "24": "I-ROCHA", | |
| "25": "B-TIPO_POROSIDADE", | |
| "26": "I-N\u00c3OCONSOLID", | |
| "27": "I-ELEMENTO_PETRO", | |
| "28": "B-PO\u00c7O_T", | |
| "29": "B-PO\u00c7O_Q", | |
| "30": "I-TEXTURA", | |
| "31": "I-FLUIDO", | |
| "32": "I-PO\u00c7O_T" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "B-BACIA": 6, | |
| "B-CAMPO": 1, | |
| "B-ELEMENTO_PETRO": 11, | |
| "B-ESTRUTURA_F\u00cdSICA": 12, | |
| "B-EVENTO_PETRO": 23, | |
| "B-FLUIDO": 18, | |
| "B-FLUIDODATERRA_i": 8, | |
| "B-FLUIDODATERRA_o": 14, | |
| "B-N\u00c3OCONSOLID": 13, | |
| "B-PO\u00c7O": 15, | |
| "B-PO\u00c7O_Q": 29, | |
| "B-PO\u00c7O_R": 21, | |
| "B-PO\u00c7O_T": 28, | |
| "B-ROCHA": 2, | |
| "B-TEXTURA": 19, | |
| "B-TIPO_POROSIDADE": 25, | |
| "B-UNIDADE_CRONO": 5, | |
| "B-UNIDADE_LITO": 3, | |
| "I-BACIA": 7, | |
| "I-CAMPO": 10, | |
| "I-ELEMENTO_PETRO": 27, | |
| "I-ESTRUTURA_F\u00cdSICA": 20, | |
| "I-FLUIDO": 31, | |
| "I-FLUIDODATERRA_i": 22, | |
| "I-FLUIDODATERRA_o": 16, | |
| "I-N\u00c3OCONSOLID": 26, | |
| "I-PO\u00c7O": 17, | |
| "I-PO\u00c7O_T": 32, | |
| "I-ROCHA": 24, | |
| "I-TEXTURA": 30, | |
| "I-UNIDADE_CRONO": 9, | |
| "I-UNIDADE_LITO": 4, | |
| "O": 0 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "output_past": true, | |
| "pad_token_id": 0, | |
| "pooler_fc_size": 768, | |
| "pooler_num_attention_heads": 12, | |
| "pooler_num_fc_layers": 3, | |
| "pooler_size_per_head": 128, | |
| "pooler_type": "first_token_transform", | |
| "position_embedding_type": "absolute", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.38.1", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 29794 | |
| } | |