nicolauduran45
commited on
Commit
•
dac7843
1
Parent(s):
8114369
Update README.md
Browse files
README.md
CHANGED
@@ -1,199 +1,176 @@
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
-
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
---
|
5 |
|
6 |
-
#
|
7 |
|
8 |
-
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
|
|
11 |
|
12 |
-
|
|
|
13 |
|
14 |
-
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
19 |
|
20 |
-
|
21 |
-
- **Funded by [optional]:** [More Information Needed]
|
22 |
-
- **Shared by [optional]:** [More Information Needed]
|
23 |
-
- **Model type:** [More Information Needed]
|
24 |
-
- **Language(s) (NLP):** [More Information Needed]
|
25 |
-
- **License:** [More Information Needed]
|
26 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
27 |
|
28 |
-
|
29 |
|
30 |
-
|
31 |
|
32 |
-
|
33 |
-
|
34 |
-
- **Demo [optional]:** [More Information Needed]
|
35 |
|
36 |
-
|
37 |
|
38 |
-
|
39 |
|
40 |
-
|
41 |
|
42 |
-
|
|
|
43 |
|
44 |
-
[More Information Needed]
|
45 |
|
46 |
-
|
47 |
|
48 |
-
|
49 |
|
50 |
-
|
|
|
|
|
51 |
|
52 |
-
### Out-of-Scope Use
|
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 |
-
|
94 |
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
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 |
-
|
173 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
174 |
-
|
175 |
-
**BibTeX:**
|
176 |
-
|
177 |
-
[More Information Needed]
|
178 |
-
|
179 |
-
**APA:**
|
180 |
-
|
181 |
-
[More Information Needed]
|
182 |
-
|
183 |
-
## Glossary [optional]
|
184 |
-
|
185 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
186 |
-
|
187 |
-
[More Information Needed]
|
188 |
-
|
189 |
-
## More Information [optional]
|
190 |
-
|
191 |
-
[More Information Needed]
|
192 |
-
|
193 |
-
## Model Card Authors [optional]
|
194 |
-
|
195 |
-
[More Information Needed]
|
196 |
-
|
197 |
-
## Model Card Contact
|
198 |
-
|
199 |
-
[More Information Needed]
|
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
+
tags:
|
4 |
+
- affiliations
|
5 |
+
- ner
|
6 |
+
- science
|
7 |
+
license: apache-2.0
|
8 |
+
language:
|
9 |
+
- en
|
10 |
+
base_model:
|
11 |
+
- SIRIS-Lab/affilgood-affilroberta
|
12 |
---
|
13 |
|
14 |
+
# AffilGood-NER
|
15 |
|
16 |
+
## Overview
|
17 |
|
18 |
+
<details>
|
19 |
+
<summary>Click to expand</summary>
|
20 |
+
|
21 |
+
- **Model type:** Language Model
|
22 |
+
- **Architecture:** RoBERTa-base
|
23 |
+
- **Language:** English
|
24 |
+
- **License:** Apache 2.0
|
25 |
+
- **Task:** Named Entity Recognition
|
26 |
+
- **Data:** AffilGood-NER
|
27 |
+
- **Additional Resources:**
|
28 |
+
- [Paper](https://https://aclanthology.org/2024.sdp-1.13/)
|
29 |
+
- [GitHub](https://github.com/sirisacademic/affilgood)
|
30 |
+
</details>
|
31 |
|
32 |
+
## Model description
|
33 |
|
34 |
+
The English version of **affilgood-NER** is a Named Entity Recognition (NER) model for identifying named entities in raw affiliation strings from scientific papers and projects,
|
35 |
+
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.
|
36 |
|
37 |
+
It has been trained with a dataset that contains 7 main types of entities from multilingual raw affiliation strings texts, with 5,266 texts.
|
38 |
|
39 |
+
After analyzing hundreds of affiliations from multiple countries and languages, we defined seven entity types: `SUB-ORGANISATION`, `ORGANISATION`, `CITY`, `COUNTRY`, `ADDRESS`, `POSTAL-CODE`, and `REGION`, detailed [annotation guidelines here].
|
40 |
|
41 |
+
**Identifying named entities** (organization names, cities, countries) in affiliation strings not only enables more effective linking with external organization registries, but it can also play an essential role in the geolocation of organizations and can also contribute to identify organizations and their position in an institutional hierarchy -- especially for those not listed in external databases. Information automatically extracted by means of a NER model can also facilitate the construction of knowledge graphs, and support the development of manually curated registries.
|
42 |
|
43 |
+
## Intended Usage
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
+
This model is intended to be used for raw affiliation strings in English, because this model is pre-trained on English RoBERTa, however NER and large further pre-training corpora are both multilingual.
|
46 |
|
47 |
+
## How to use
|
48 |
|
49 |
+
```python
|
50 |
+
from transformers import pipeline
|
|
|
51 |
|
52 |
+
affilgood_ner_pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple")
|
53 |
|
54 |
+
sentence = "CSIC, Global ecology Unit CREAF-CSIC-UAB, Bellaterra 08193, Catalonia, Spain."
|
55 |
|
56 |
+
output = affilgood_ner_pipeline(sentence)
|
57 |
|
58 |
+
print(output)
|
59 |
+
```
|
60 |
|
|
|
61 |
|
62 |
+
## Limitations and bias
|
63 |
|
64 |
+
No measures have been taken to estimate the bias and toxicity embedded in the model.
|
65 |
|
66 |
+
The NER dataset contains 5,266 raw affiliation strings obtained from OpenAlex.
|
67 |
+
It includes multilingual samples from all available countries and geographies to ensure comprehensive coverage and diversity.
|
68 |
+
To enable our model to recognize various affiliation string formats, the dataset includes a wide range of structures, different ways of grouping main and subsidiary institutions and various methods of separating organization names. We also included ill-formed affiliations and those containing errors resulting from automatic extraction from PDF files.
|
69 |
|
|
|
70 |
|
71 |
+
## Training
|
72 |
|
73 |
+
We used the [AffilGood-NER dataset](link) for training and evaluation.
|
74 |
|
75 |
+
We fine-tuned the adapted and base models for token classification with the IOB annotation schema.
|
76 |
+
We trained the models for 25 epochs, using 80% of the dataset for training, 10% for validation and 10% for testing.
|
77 |
|
78 |
+
Hyperparameters used for training are described here:
|
79 |
+
- Learning Rate: 2e-5
|
80 |
+
- Learning Rate Decay: Linear
|
81 |
+
- Weight Decay: 0.01
|
82 |
+
- Warmup Portion: 0.06
|
83 |
+
- Batch Size: 128
|
84 |
+
- Number of Steps: 25k steps
|
85 |
+
- Adam ε: 1e-6
|
86 |
+
- Adam β<sub>1</sub>: 0.9
|
87 |
+
- Adam β<sub>2</sub>: 0.999
|
88 |
|
89 |
+
The **best performing epoch (considering macro-averaged F1 with *strict* matching criteria) was used to select the model**.
|
90 |
|
91 |
+
### Evaluation
|
92 |
|
93 |
+
The model's performance was evaluated on a 10% of the dataset.
|
94 |
|
95 |
+
| Category| RoBERTa | XLM | **AffilRoBERTa (this model)** | AffilXLM |
|
96 |
+
|-----|------|------|------|----------|
|
97 |
+
| ALL | .910 | .915 | .920 | **.925** |
|
98 |
+
|-----|------|------|------|----------|
|
99 |
+
| ORG | .869 | .886 | .879 | **.906** |
|
100 |
+
| SUB | .898 | .890 | **.911** | .892 |
|
101 |
+
| CITY | .936 | .941 | .950 | **.958** |
|
102 |
+
| COUNTRY | .971 | .973 | **.980** | .970 |
|
103 |
+
| REGION | .870 | .876 | .874 | **.882** |
|
104 |
+
| POSTAL | .975 | .975 | **.981** | .966 |
|
105 |
+
| ADDRESS | .804 | .811 | .794 | **.869** |
|
106 |
|
107 |
+
All the numbers reported above represent F1-score with *strict* match, when both the boundaries and types of the entities match.
|
108 |
|
109 |
+
## Additional information
|
110 |
|
111 |
+
### Authors
|
112 |
|
113 |
+
- SIRIS Lab, Research Division of SIRIS Academic, Barcelona, Spain
|
114 |
+
- LaSTUS Lab, TALN Group, Universitat Pompeu Fabra, Barcelona, Spain
|
115 |
+
- Institute of Computer Science, Polish Academy of Sciences, Warsaw, Poland
|
116 |
|
117 |
+
### Contact
|
118 |
|
119 |
+
For further information, send an email to either <[email protected]> or <info@sirisacademic.com>.
|
120 |
|
121 |
+
### License
|
122 |
|
123 |
+
This work is distributed under a [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
|
124 |
|
125 |
+
### Funding
|
126 |
|
127 |
+
This work was partially funded and supporter by:
|
128 |
+
- 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),
|
129 |
+
- Maria de Maeztu Units of Excellence Programme CEX2021-001195-M, funded by MCIN/AEI /10.13039/501100011033
|
130 |
+
- EU HORIZON SciLake (Grant Agreement 101058573)
|
131 |
+
- EU HORIZON ERINIA (Grant Agreement 101060930)
|
132 |
|
133 |
+
### Citation
|
134 |
|
135 |
+
```bibtex
|
136 |
+
@inproceedings{duran-silva-etal-2024-affilgood,
|
137 |
+
title = "{A}ffil{G}ood: Building reliable institution name disambiguation tools to improve scientific literature analysis",
|
138 |
+
author = "Duran-Silva, Nicolau and
|
139 |
+
Accuosto, Pablo and
|
140 |
+
Przyby{\l}a, Piotr and
|
141 |
+
Saggion, Horacio",
|
142 |
+
editor = "Ghosal, Tirthankar and
|
143 |
+
Singh, Amanpreet and
|
144 |
+
Waard, Anita and
|
145 |
+
Mayr, Philipp and
|
146 |
+
Naik, Aakanksha and
|
147 |
+
Weller, Orion and
|
148 |
+
Lee, Yoonjoo and
|
149 |
+
Shen, Shannon and
|
150 |
+
Qin, Yanxia",
|
151 |
+
booktitle = "Proceedings of the Fourth Workshop on Scholarly Document Processing (SDP 2024)",
|
152 |
+
month = aug,
|
153 |
+
year = "2024",
|
154 |
+
address = "Bangkok, Thailand",
|
155 |
+
publisher = "Association for Computational Linguistics",
|
156 |
+
url = "https://aclanthology.org/2024.sdp-1.13",
|
157 |
+
pages = "135--144",
|
158 |
+
}
|
159 |
+
```
|
160 |
|
161 |
+
### Disclaimer
|
162 |
|
163 |
+
<details>
|
164 |
+
<summary>Click to expand</summary>
|
165 |
+
|
166 |
+
The model published in this repository is intended for a generalist purpose
|
167 |
+
and is made available to third parties under a Apache v2.0 License.
|
168 |
+
|
169 |
+
Please keep in mind that the model may have bias and/or any other undesirable distortions.
|
170 |
+
When third parties deploy or provide systems and/or services to other parties using this model
|
171 |
+
(or a system based on it) or become users of the model itself, they should note that it is under
|
172 |
+
their responsibility to mitigate the risks arising from its use and, in any event, to comply with
|
173 |
+
applicable regulations, including regulations regarding the use of Artificial Intelligence.
|
174 |
+
|
175 |
+
In no event shall the owners and creators of the model be liable for any results arising from the use made by third parties.
|
176 |
+
</details>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|