botryan96 commited on
Commit
0b30db5
·
1 Parent(s): 7eebd69

Upload 8 files

Browse files
Files changed (6) hide show
  1. README.md +60 -0
  2. config.json +1 -1
  3. tf_model.h5 +1 -1
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +1 -1
  6. vocab.txt +0 -0
README.md CHANGED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_keras_callback
4
+ model-index:
5
+ - name: GeoBERT_NER
6
+ results: []
7
+ ---
8
+
9
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
10
+ probably proofread and complete it, then remove this comment. -->
11
+
12
+ # GeoBERT_NER
13
+
14
+ GeoBERT_NER is a NER model that was fine-tuned from SciBERT on the Geoscientific Corpus dataset.
15
+ The model was trained on the Labeled Geoscientific Corpus dataset (~1 million sentences).
16
+
17
+
18
+ ## Intended uses
19
+
20
+ The NER product in this model has a goal to identify four main semantic types or categories related to Geosciences.
21
+
22
+ 1. GeoPetro for any entities that belong to all terms in Geosciences
23
+ 2. GeoMeth for all tools or methods associated with Geosciences
24
+ 3. GeoLoc to identify geological locations
25
+ 4. GeoTime for identifying the geological time scale entities
26
+
27
+
28
+ ### Training hyperparameters
29
+
30
+ The following hyperparameters were used during training:
31
+ - 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}
32
+ - training_precision: mixed_float16
33
+
34
+
35
+ ### Framework versions
36
+
37
+ - Transformers 4.22.1
38
+ - TensorFlow 2.10.0
39
+ - Datasets 2.4.0
40
+ - Tokenizers 0.12.1
41
+
42
+ ## Model performances (metric: seqeval)
43
+
44
+ entity|precision|recall|f1
45
+ -|-|-|-
46
+ GeoLoc |0.9727|0.9591|0.9658
47
+ GeoMeth |0.9433|0.9447|0.9445
48
+ GeoPetro|0.9767|0.9745|0.9756
49
+ GeoTime |0.9695|0.9666|0.9680
50
+
51
+ ## How to use GeoBERT_NER with HuggingFace
52
+
53
+ ##### Load GeoBERT and its sub-word tokenizer :
54
+
55
+ ```python
56
+ from transformers import AutoTokenizer, AutoModelForTokenClassification
57
+
58
+ tokenizer = AutoTokenizer.from_pretrained("botryan96/GeoBERT_NER")
59
+ model = AutoModelForTokenClassification.from_pretrained("botryan96/GeoBERT_NER")
60
+ ```
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "botryan96/GeoBERT",
3
  "architectures": [
4
  "BertForTokenClassification"
5
  ],
 
1
  {
2
+ "_name_or_path": "botryan96/GeoBERT_NER",
3
  "architectures": [
4
  "BertForTokenClassification"
5
  ],
tf_model.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:96e65dbd6802572da2215bc4d881d7000d03989fd35eb410173a7aef0f1392be
3
  size 437612588
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2f2a7951e2d713507ea3f0908b1229fdb9c357d15231291b816451d4e0d5ef0
3
  size 437612588
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -3,7 +3,7 @@
3
  "do_basic_tokenize": true,
4
  "do_lower_case": true,
5
  "mask_token": "[MASK]",
6
- "name_or_path": "botryan96/GeoBERT",
7
  "never_split": null,
8
  "pad_token": "[PAD]",
9
  "sep_token": "[SEP]",
 
3
  "do_basic_tokenize": true,
4
  "do_lower_case": true,
5
  "mask_token": "[MASK]",
6
+ "name_or_path": "botryan96/GeoBERT_NER",
7
  "never_split": null,
8
  "pad_token": "[PAD]",
9
  "sep_token": "[SEP]",
vocab.txt CHANGED
The diff for this file is too large to render. See raw diff