generated_from_keras_callback

<!-- 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:

Framework versions

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 :
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)