Update README.md
Browse files
README.md
CHANGED
|
@@ -138,29 +138,6 @@ Descending Order by Score:
|
|
| 138 |
```
|
| 139 |
|
| 140 |
|
| 141 |
-
## To run experiments
|
| 142 |
-
|
| 143 |
-
FewRel: ~56k examples
|
| 144 |
-
WikiZSL: ~85k examples
|
| 145 |
-
|
| 146 |
-
```bash
|
| 147 |
-
# few_rel
|
| 148 |
-
cd data
|
| 149 |
-
python process_few_rel.py
|
| 150 |
-
cd ..
|
| 151 |
-
# adjust config
|
| 152 |
-
python train.py --config config_few_rel.yaml
|
| 153 |
-
```
|
| 154 |
-
|
| 155 |
-
```bash
|
| 156 |
-
# wiki_zsl
|
| 157 |
-
cd data
|
| 158 |
-
python process_wiki_zsl.py
|
| 159 |
-
cd ..
|
| 160 |
-
# <adjust config>
|
| 161 |
-
python train.py --config config_wiki_zsl.yaml
|
| 162 |
-
```
|
| 163 |
-
|
| 164 |
## Example training data
|
| 165 |
|
| 166 |
NOTE that the entity indices are inclusive i.e `"Binsey"` is `[7, 7]`. This differs from spaCy where the end index is exclusive (in this case spaCy would set the indices to `[7, 8]`)
|
|
@@ -209,4 +186,17 @@ JSONL file:
|
|
| 209 |
</a>
|
| 210 |
|
| 211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
|
|
|
|
| 138 |
```
|
| 139 |
|
| 140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
## Example training data
|
| 142 |
|
| 143 |
NOTE that the entity indices are inclusive i.e `"Binsey"` is `[7, 7]`. This differs from spaCy where the end index is exclusive (in this case spaCy would set the indices to `[7, 8]`)
|
|
|
|
| 186 |
</a>
|
| 187 |
|
| 188 |
|
| 189 |
+
## Citation
|
| 190 |
+
If you use code or ideas from this project, please cite:
|
| 191 |
+
```
|
| 192 |
+
@misc{boylan2025glirelgeneralistmodel,
|
| 193 |
+
title={GLiREL -- Generalist Model for Zero-Shot Relation Extraction},
|
| 194 |
+
author={Jack Boylan and Chris Hokamp and Demian Gholipour Ghalandari},
|
| 195 |
+
year={2025},
|
| 196 |
+
eprint={2501.03172},
|
| 197 |
+
archivePrefix={arXiv},
|
| 198 |
+
primaryClass={cs.CL},
|
| 199 |
+
url={https://arxiv.org/abs/2501.03172},
|
| 200 |
+
}
|
| 201 |
+
```
|
| 202 |
|