File size: 2,137 Bytes
a5fc232
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4190cfc
 
 
 
 
 
 
 
 
 
 
a5fc232
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
tags:
- generated_from_keras_callback
model-index:
- name: GeoBERT
  results: []
---

<!-- This model card has been generated automatically according to the information Keras had access to. You should
probably proofread and complete it, then remove this comment. -->

# GeoBERT_Analyzer

GeoBERT_Analyzer is a Text Classification model that was fine-tuned from GeoBERT on the Geoscientific Corpus dataset.
The model was trained on the Labeled Geoscientific & Non-Geosceintific Corpus dataset (21416 x 2 sentences).


## Intended uses

The train aims to make the Language Model have the ability to distinguish between Geoscience and Non – Geoscience (General) corpus


### Training hyperparameters

The following hyperparameters were used during training:
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 14000, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
- training_precision: mixed_float16


### Framework versions

- Transformers 4.22.1
- TensorFlow 2.10.0
- Datasets 2.4.0
- Tokenizers 0.12.1

## Model performances (metric: seqeval)

entity|precision|recall|f1
-|-|-|-
General   |0.9976|0.9980|0.9978 
Geoscience|0.9980|0.9984|0.9982

## How to use GeoBERT with HuggingFace

##### Load GeoBERT and its sub-word tokenizer :

```python
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("botryan96/GeoBERT_analyzer")
model = AutoModelForTokenClassification.from_pretrained("botryan96/GeoBERT_analyzer")

#Define the pipeline
from transformers import pipeline
anlyze_machine=pipeline('text-classification',model = model_checkpoint2)

#Define the sentences
sentences = ['the average iron and sulfate concentrations were calculated to be 19 . 6 5 . 2 and 426 182 mg / l , respectively .',
            'She first gained media attention as a friend and stylist of Paris Hilton']

#Deploy the machine
anlyze_machine(sentences)
```