File size: 2,205 Bytes
1d1d41c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
license: mit
language:
- en
metrics:
- accuracy
- f1
- recall
- precision
library_name: transformers
pipeline_tag: text-generation
---

# FLAN-T5 small-WordNet

This model is a fine-tuned version of [flan-t5-small](https://huggingface.co./google/flan-t5-small) on the WordNet dataset.

## Model description

The model is trained to classify terms into one of four term types: noun, verb, adjective or adverb. The types themselves are learned and then generated by the model with no more than one type associated with a specific term.

The model also works well as part of a Retrieval-and-Generation (RAG) pipeline by leveraging an external knowledge source, specifically [Wordnet Semantic Primes](https://huggingface.co./datasets/HannaAbiAkl/wordnet-semantic-primes).

## Intended uses and limitations

This model is intended to be used to generate a type (class) for an input term.

# Training and evaluation data

The training and evaluation data can be found [here](https://github.com/HamedBabaei/LLMs4OL-Challenge-ISWC2024/tree/main/TaskA-Term%20Typing/SubTask%20A.1(FS)%20-%20WordNet).

The train size is 40559.

The test size is 9470.

## Example

Here's an example of the model capabilities:

- **input:**
  - *Lexical Term L:* question
  - *Sentence Containing L (Optional):* there was a question about my training

- **output:**
  - *Type:* noun
 
- **input:**
  - *Lexical Term L:* lodge
  - *Sentence Containing L (Optional):* Where are you lodging in Paris?

- **output:**
  - *Type:* verb
 
- **input:**
  - *Lexical Term L:* genus equisetum
  - *Sentence Containing L (Optional):* 

- **output:**
  - *Type:* noun
 
## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 1e-05
- train_batch_size: 4
- eval_batch_size: 4
- seed: 42
- num_epochs: 5

### Training results

| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:----:|:---------------:|
| 0.1725        | 1.0   | 1000 | 0.0640          |
| 0.1250	    | 2.0   | 2000 | 0.0535          |
| 0.1040	    | 3.0   | 3000 | 0.0469          |
| 0.0917	    | 4.0   | 4000 | 0.0421          |
| 0.0830        | 5.0   | 5000 | 0.0384          |