HannaAbiAkl
commited on
Commit
•
4e8450d
1
Parent(s):
94f23a5
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,77 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
- f1
|
8 |
+
- recall
|
9 |
+
- precision
|
10 |
+
library_name: transformers
|
11 |
+
pipeline_tag: text-generation
|
12 |
+
---
|
13 |
+
|
14 |
+
# FLAN-T5 small-GeoNames
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [flan-t5-small](https://huggingface.co/google/flan-t5-small) on the GeoNames dataset.
|
17 |
+
|
18 |
+
## Model description
|
19 |
+
|
20 |
+
The model is trained to classify terms into one of 660 category classes related to geographical locations.
|
21 |
+
|
22 |
+
The model also works well as part of a Retrieval-and-Generation (RAG) pipeline by leveraging an external knowledge source, specifically [GeoNames Semantic Primes](https://huggingface.co/datasets/HannaAbiAkl/geonames-semantic-primes).
|
23 |
+
|
24 |
+
## Intended uses and limitations
|
25 |
+
|
26 |
+
This model is intended to be used to generate a type (class) for an input term.
|
27 |
+
|
28 |
+
# Training and evaluation data
|
29 |
+
|
30 |
+
The training and evaluation data can be found [here](https://github.com/HamedBabaei/LLMs4OL-Challenge-ISWC2024/tree/main/TaskA-Term%20Typing/SubTask%20A.2%20(FS)%20-%20GeoNames).
|
31 |
+
|
32 |
+
The train size is 8078865.
|
33 |
+
|
34 |
+
The test size is 702510.
|
35 |
+
|
36 |
+
## Example
|
37 |
+
|
38 |
+
Here's an example of the model capabilities:
|
39 |
+
|
40 |
+
- **input:**
|
41 |
+
- *Lexical Term L:* Pic de Font Blanca
|
42 |
+
|
43 |
+
- **output:**
|
44 |
+
- *Type:* peak
|
45 |
+
|
46 |
+
- **input:**
|
47 |
+
- *Lexical Term L:* Roc Mele
|
48 |
+
|
49 |
+
- **output:**
|
50 |
+
- *Type:* mountain
|
51 |
+
|
52 |
+
- **input:**
|
53 |
+
- *Lexical Term L:* Estany de les Abelletes
|
54 |
+
|
55 |
+
- **output:**
|
56 |
+
- *Type:* lake
|
57 |
+
|
58 |
+
## Training procedure
|
59 |
+
|
60 |
+
### Training hyperparameters
|
61 |
+
|
62 |
+
The following hyperparameters were used during training:
|
63 |
+
- learning_rate: 1e-05
|
64 |
+
- train_batch_size: 4
|
65 |
+
- eval_batch_size: 4
|
66 |
+
- seed: 42
|
67 |
+
- num_epochs: 5
|
68 |
+
|
69 |
+
### Training results
|
70 |
+
|
71 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
72 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
73 |
+
| 2.6223 | 1.0 | 1000 | 1.5223 |
|
74 |
+
| 2.1430 | 2.0 | 2000 | 1.3764 |
|
75 |
+
| 1.9100 | 3.0 | 3000 | 1.2825 |
|
76 |
+
| 1.7642 | 4.0 | 4000 | 1.2102 |
|
77 |
+
| 1.6607 | 5.0 | 5000 | 1.1488 |
|