nicolauduran45 commited on
Commit
d24a0cb
1 Parent(s): c5dbcf8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +170 -3
README.md CHANGED
@@ -1,3 +1,170 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ base_model:
6
+ - SIRIS-Lab/affilgood-affilroberta
7
+ tags:
8
+ - affiliations
9
+ - ner
10
+ - science
11
+ ---
12
+
13
+ # AffilGood-SPAN
14
+
15
+ ## Overview
16
+
17
+ <details>
18
+ <summary>Click to expand</summary>
19
+
20
+ - **Model type:** Language Model
21
+ - **Architecture:** RoBERTa-base
22
+ - **Language:** English
23
+ - **License:** Apache 2.0
24
+ - **Task:** Named Entity Recognition
25
+ - **Data:** AffilGood-SPAN
26
+ - **Additional Resources:**
27
+ - [Paper](https://https://aclanthology.org/2024.sdp-1.13/)
28
+ - [GitHub](https://github.com/sirisacademic/affilgood)
29
+ </details>
30
+
31
+ ## Model description
32
+
33
+ The English version of **affilgood-span** is a Named Entity Recognition (NER) model for identifying span of single affiliation strings in raw affiliation strings from scientific papers and projects, fine-tuned from the [AffilRoberta](https://huggingface.co/SIRIS-Lab/affilgood-affilroberta) model, a [RoBERTa](https://arxiv.org/abs/1907.11692) base model futher pre-trained for MLM task on a medium-size corpus of raw affiliation stirngs collected from OpenAlex.
34
+
35
+ Raw affiliation span identification task is aimed at extracting and cleaning affiliation strings when there is noise and/or when there are multiple affiliation strings in the same signature.
36
+ Typically, multiple institutions have been considered to be separated by semicolons. However, other punctuation marks, spaces or *and* connectors are frequently used to separate affiliations.
37
+
38
+ We have annotated a dataset containing 2,072 raw affiliation strings obtained from OpenAlex to identify spans containing relevant affiliation data within them.
39
+ The annotated instances were selected by a stratified random sampling by country, focusing on ensuring diversity in affiliation languages and origins.
40
+ Additional manually-chosen instances with noisy sequences were included in the annotated data so we could train our model to filter out non-affiliation strings.
41
+ It is frequent that affiliation data automatically extracted from PDF files contain texts that should have been discarded (e.g. email, acknowledgements or part of the contents of the publication). These data can introduce errors in the subsequent steps of the pipeline.
42
+
43
+ We have fine-tuned the models for 25 epochs, using 80% of the dataset for training, 10% for validation and 10% for testing. Best performing model is available here.
44
+
45
+ ## Intended Usage
46
+
47
+ This model is intended to be used for raw affiliation strings in English, because this model is pre-trained on English RoBERTa, however SPAN and large further pre-training corpora are both multilingual.
48
+
49
+ ## How to use
50
+
51
+ ```python
52
+ from transformers import pipeline
53
+ affilgood_span_pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple")
54
+ sentence = "Deanery of Biomedical Sciences, University of Edinburgh, and TW2Informatics Ltd, Gothenburg, 42166, Sweden / Received in revised form February 22, 2016; ENaC, epithelial sodium channel"
55
+ output = affilgood_span_pipeline(sentence)
56
+ print(output)
57
+ ```
58
+
59
+
60
+ ## Limitations and bias
61
+
62
+ No measures have been taken to estimate the bias and toxicity embedded in the model.
63
+
64
+ We have annotated a dataset containing 2,072 raw affiliation strings obtained from OpenAlex to identify spans containing relevant affiliation data within them.
65
+ The annotated instances were selected by a stratified random sampling by country, focusing on ensuring diversity in affiliation languages and origins.
66
+ Additional manually-chosen instances with noisy sequences were included in the annotated data so we could train our model to filter out non-affiliation strings.
67
+ It is frequent that affiliation data automatically extracted from PDF files contain texts that should have been discarded (e.g. email, acknowledgements or part of the contents of the publication). These data can introduce errors in the subsequent steps of the pipeline.
68
+
69
+ ## Training
70
+
71
+ We used the [AffilGood-SPAN dataset](link) for training and evaluation.
72
+
73
+ We fine-tuned the adapted and base models for token classification with the IOB annotation schema.
74
+ We trained the models for 25 epochs, using 80% of the dataset for training, 10% for validation and 10% for testing.
75
+
76
+ Hyperparameters used for training are described here:
77
+ - Learning Rate: 2e-5
78
+ - Learning Rate Decay: Linear
79
+ - Weight Decay: 0.01
80
+ - Warmup Portion: 0.06
81
+ - Batch Size: 128
82
+ - Number of Steps: 25k steps
83
+ - Adam ε: 1e-6
84
+ - Adam β<sub>1</sub>: 0.9
85
+ - Adam β<sub>2</sub>: 0.999
86
+
87
+ The **best performing epoch (considering macro-averaged F1 with *strict* matching criteria) was used to select the model**.
88
+
89
+ ### Evaluation
90
+
91
+ The model's performance was evaluated on a 10% of the dataset.
92
+
93
+ | **Model** | **Exact F1** | **Partial F1** |
94
+ |--------------------------|--------------|----------------|
95
+ | Semicolon split (baseline) | .793 | .907 |
96
+ | RoBERTa | .929 | .981 |
97
+ | XLM | .931 | .978 |
98
+ | AffilRoBERTa | **.938** | **.981** |
99
+ | AffilXLM | .927 | .979 |
100
+
101
+ All the numbers reported above represent F1-score with *strict* and *partial* match, when both the boundaries and types of the entities match.
102
+
103
+ ## Additional information
104
+
105
+ ### Authors
106
+
107
+ - SIRIS Lab, Research Division of SIRIS Academic, Barcelona, Spain
108
+ - LaSTUS Lab, TALN Group, Universitat Pompeu Fabra, Barcelona, Spain
109
+ - Institute of Computer Science, Polish Academy of Sciences, Warsaw, Poland
110
+
111
+ ### Contact
112
+
113
+ For further information, send an email to either <[email protected]> or <[email protected]>.
114
+
115
+ ### License
116
+
117
+ This work is distributed under a [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
118
+
119
+ ### Funding
120
+
121
+ This work was partially funded and supporter by:
122
+ - Industrial Doctorates Plan of the Department of Research and Universities of the Generalitat de Catalunya, by Departament de Recerca i Universitats de la Generalitat de Catalunya (ajuts SGR-Cat 2021),
123
+ - Maria de Maeztu Units of Excellence Programme CEX2021-001195-M, funded by MCIN/AEI /10.13039/501100011033
124
+ - EU HORIZON SciLake (Grant Agreement 101058573)
125
+ - EU HORIZON ERINIA (Grant Agreement 101060930)
126
+
127
+ ### Citation
128
+
129
+ ```bibtex
130
+ @inproceedings{duran-silva-etal-2024-affilgood,
131
+ title = "{A}ffil{G}ood: Building reliable institution name disambiguation tools to improve scientific literature analysis",
132
+ author = "Duran-Silva, Nicolau and
133
+ Accuosto, Pablo and
134
+ Przyby{\l}a, Piotr and
135
+ Saggion, Horacio",
136
+ editor = "Ghosal, Tirthankar and
137
+ Singh, Amanpreet and
138
+ Waard, Anita and
139
+ Mayr, Philipp and
140
+ Naik, Aakanksha and
141
+ Weller, Orion and
142
+ Lee, Yoonjoo and
143
+ Shen, Shannon and
144
+ Qin, Yanxia",
145
+ booktitle = "Proceedings of the Fourth Workshop on Scholarly Document Processing (SDP 2024)",
146
+ month = aug,
147
+ year = "2024",
148
+ address = "Bangkok, Thailand",
149
+ publisher = "Association for Computational Linguistics",
150
+ url = "https://aclanthology.org/2024.sdp-1.13",
151
+ pages = "135--144",
152
+ }
153
+ ```
154
+
155
+ ### Disclaimer
156
+
157
+ <details>
158
+ <summary>Click to expand</summary>
159
+
160
+ The model published in this repository is intended for a generalist purpose
161
+ and is made available to third parties under a Apache v2.0 License.
162
+
163
+ Please keep in mind that the model may have bias and/or any other undesirable distortions.
164
+ When third parties deploy or provide systems and/or services to other parties using this model
165
+ (or a system based on it) or become users of the model itself, they should note that it is under
166
+ their responsibility to mitigate the risks arising from its use and, in any event, to comply with
167
+ applicable regulations, including regulations regarding the use of Artificial Intelligence.
168
+
169
+ In no event shall the owners and creators of the model be liable for any results arising from the use made by third parties.
170
+ </details>