Update README.md
Browse files
README.md
CHANGED
|
@@ -5,7 +5,7 @@ library_name: peft
|
|
| 5 |
|
| 6 |
# Model Card for Model ID
|
| 7 |
|
| 8 |
-
|
| 9 |
|
| 10 |
|
| 11 |
|
|
@@ -13,10 +13,6 @@ library_name: peft
|
|
| 13 |
|
| 14 |
### Model Description
|
| 15 |
|
| 16 |
-
<!-- Provide a longer summary of what this model is. -->
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
- **Developed by:** [More Information Needed]
|
| 21 |
- **Funded by [optional]:** [More Information Needed]
|
| 22 |
- **Shared by [optional]:** [More Information Needed]
|
|
@@ -29,144 +25,67 @@ library_name: peft
|
|
| 29 |
|
| 30 |
<!-- Provide the basic links for the model. -->
|
| 31 |
|
| 32 |
-
- **Repository:**
|
| 33 |
- **Paper [optional]:** [More Information Needed]
|
| 34 |
- **Demo [optional]:** [More Information Needed]
|
| 35 |
|
| 36 |
## Uses
|
| 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 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
#### Training Hyperparameters
|
| 94 |
-
|
| 95 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 96 |
-
|
| 97 |
-
#### Speeds, Sizes, Times [optional]
|
| 98 |
-
|
| 99 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 100 |
-
|
| 101 |
-
[More Information Needed]
|
| 102 |
-
|
| 103 |
-
## Evaluation
|
| 104 |
-
|
| 105 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 106 |
-
|
| 107 |
-
### Testing Data, Factors & Metrics
|
| 108 |
-
|
| 109 |
-
#### Testing Data
|
| 110 |
-
|
| 111 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 112 |
-
|
| 113 |
-
[More Information Needed]
|
| 114 |
-
|
| 115 |
-
#### Factors
|
| 116 |
-
|
| 117 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 118 |
-
|
| 119 |
-
[More Information Needed]
|
| 120 |
-
|
| 121 |
-
#### Metrics
|
| 122 |
-
|
| 123 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 124 |
-
|
| 125 |
-
[More Information Needed]
|
| 126 |
-
|
| 127 |
-
### Results
|
| 128 |
-
|
| 129 |
-
[More Information Needed]
|
| 130 |
-
|
| 131 |
-
#### Summary
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
## Model Examination [optional]
|
| 136 |
-
|
| 137 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 138 |
-
|
| 139 |
-
[More Information Needed]
|
| 140 |
-
|
| 141 |
-
## Environmental Impact
|
| 142 |
-
|
| 143 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 144 |
-
|
| 145 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 146 |
-
|
| 147 |
-
- **Hardware Type:** [More Information Needed]
|
| 148 |
-
- **Hours used:** [More Information Needed]
|
| 149 |
-
- **Cloud Provider:** [More Information Needed]
|
| 150 |
-
- **Compute Region:** [More Information Needed]
|
| 151 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 152 |
-
|
| 153 |
-
## Technical Specifications [optional]
|
| 154 |
-
|
| 155 |
-
### Model Architecture and Objective
|
| 156 |
-
|
| 157 |
-
[More Information Needed]
|
| 158 |
-
|
| 159 |
-
### Compute Infrastructure
|
| 160 |
-
|
| 161 |
-
[More Information Needed]
|
| 162 |
-
|
| 163 |
-
#### Hardware
|
| 164 |
-
|
| 165 |
-
[More Information Needed]
|
| 166 |
-
|
| 167 |
-
#### Software
|
| 168 |
-
|
| 169 |
-
[More Information Needed]
|
| 170 |
|
| 171 |
## Citation [optional]
|
| 172 |
|
|
|
|
| 5 |
|
| 6 |
# Model Card for Model ID
|
| 7 |
|
| 8 |
+
- This model has been trained for solving the temporal relation extraction task using RL over the E3C corpus as part of the paper "".
|
| 9 |
|
| 10 |
|
| 11 |
|
|
|
|
| 13 |
|
| 14 |
### Model Description
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
- **Developed by:** [More Information Needed]
|
| 17 |
- **Funded by [optional]:** [More Information Needed]
|
| 18 |
- **Shared by [optional]:** [More Information Needed]
|
|
|
|
| 25 |
|
| 26 |
<!-- Provide the basic links for the model. -->
|
| 27 |
|
| 28 |
+
- **Repository:** https://github.com/asdc-s5/Temporal-relation-extraction-with-RL
|
| 29 |
- **Paper [optional]:** [More Information Needed]
|
| 30 |
- **Demo [optional]:** [More Information Needed]
|
| 31 |
|
| 32 |
## Uses
|
| 33 |
|
| 34 |
+
The model is intended to predict the temporal relation between two entities in multiple languages. The model is trained to work on Spanish, English, French, Italian and Basque but it can be used in other languages.
|
| 35 |
+
|
| 36 |
+
### Downstream Use
|
| 37 |
+
|
| 38 |
+
- For using the model use the following template:
|
| 39 |
+
|
| 40 |
+
PROMPT_TEMPLATE = """
|
| 41 |
+
## Instruction ##
|
| 42 |
+
- Extract the start point, end point, and span for the given source and target terms.
|
| 43 |
+
- Classify the relation between them using one of: BEFORE, BEGINS-ON, ENDS-ON, CONTAINS, SIMULTANEOUS, OVERLAP.
|
| 44 |
+
- Answer with the XML Response Format
|
| 45 |
+
|
| 46 |
+
## Definitions ##
|
| 47 |
+
- A term has a start point (time it begins to exist), an end point (time it ceases to exist), and a span (time between both).
|
| 48 |
+
|
| 49 |
+
## Inputs ##
|
| 50 |
+
- **Context Sentence:** *"{}"*
|
| 51 |
+
- **Source term:** *"{}"*
|
| 52 |
+
- **Target term:** *"{}"*
|
| 53 |
+
|
| 54 |
+
## XML Response Format ##
|
| 55 |
+
<Source>
|
| 56 |
+
<Meaning>Explain the meaning of the source term</Meaning>
|
| 57 |
+
<Start>Reason about the temporal start point</Start>
|
| 58 |
+
<End>Reason about the temporal end point</End>
|
| 59 |
+
<Span>Reason about the temporal span</Span>
|
| 60 |
+
</Source>
|
| 61 |
+
<Target>
|
| 62 |
+
<Meaning>Explain the meaning of the target term</Meaning>
|
| 63 |
+
<Start>Reason about the temporal start point</Start>
|
| 64 |
+
<End>Reason about the temporal end point</End>
|
| 65 |
+
<Span>Reason about the temporal span</Span>
|
| 66 |
+
</Target>
|
| 67 |
+
<Relation>
|
| 68 |
+
<Start_Start>
|
| 69 |
+
<Reason>Reason about the relation of the start and start points</Reason>
|
| 70 |
+
<Answer>before/after/equal/different</Answer>
|
| 71 |
+
</Start_Start>
|
| 72 |
+
<Start_End>
|
| 73 |
+
<Reason>Reason about the relation of the start and end points</Reason>
|
| 74 |
+
<Answer>before/after/equal/different</Answer>
|
| 75 |
+
</Start_End>
|
| 76 |
+
<End_Start>
|
| 77 |
+
<Reason>Reason about the relation of the end and start points</Reason>
|
| 78 |
+
<Answer>before/after/equal/different</Answer>
|
| 79 |
+
</End_Start>
|
| 80 |
+
<End_End>
|
| 81 |
+
<Reason>Reason about the relation of the end and end points</Reason>
|
| 82 |
+
<Answer>before/after/equal/different</Answer>
|
| 83 |
+
</End_End>
|
| 84 |
+
<Label>BEFORE/BEGINS-ON/ENDS-ON/CONTAINS/SIMULTANEOUS/OVERLAP</Label>
|
| 85 |
+
</Relation>
|
| 86 |
+
|
| 87 |
+
<think>\n
|
| 88 |
+
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
## Citation [optional]
|
| 91 |
|