This model extracts metadata from research articles related to Paleoecology.
This model can be used to extract entities from any text that are Paeleoecology related or tangential. Potential uses include identifying unique SITE names in research papers in other domains.
This model is deployed on the xDD (formerly GeoDeepDive) servers where it is getting fed new research articles relevant to Neotoma and returning the extracted data.
This approach could be adapted to other domains by using the training and development code found
github.com/NeotomaDB/MetaExtractor to run similar data extraction for other research domains.
This model was trained entirely on English research articles and will likely not perform well on research in other languages. Also, the articles used to train the model were chosen based on being already present in the Neotoma database and therefore may have selection bias as they represent what is already known to be relevant to Neotoma and may not correctly manage new, previously missed articles.
Use the code below to get started with the model.
1from transformers import AutoTokenizer, AutoModelForTokenClassification
2from transformers import pipeline
3
4tokenizer = AutoTokenizer.from_pretrained("finding-fossils/metaextractor")
5model = AutoModelForTokenClassification.from_pretrained("finding-fossils/metaextractor")
6ner_pipe = pipeline('ner', model=model, tokenizer=tokenizer, aggregation_strategy="simple")
7
8ner_pipe("In Northern Canada, the BGC site core was primarily made up of Pinus pollen.")
9
10# Output
11[
12 {
13 "entity_group": "REGION",
14 "score": 0.8088379502296448,
15 "word": " Northern Canada,",
16 "start": 3,
17 "end": 19
18 },
19 {
20 "entity_group": "SITE",
21 "score": 0.8307041525840759,
22 "word": " BGC",
23 "start": 24,
24 "end": 27
25 },
26 {
27 "entity_group": "TAXA",
28 "score": 0.9806344509124756,
29 "word": " Pinus",
30 "start": 63,
31 "end": 68
32 }
33]
The model was trained using a set of 39 research articles deemed relevant to the Neotoma Database. All articles were written in English. The entities were labeled by the project team along with using pre-labelling with early models to speed up the labelling process.
A 70/15/15 train/val/test split was used which had the following breakdown of words and entities.
For full training details please see the GitHub repository and Wiki:
github.com/NeotomaDB/MetaExtractor
For full model results see the report here:
Final Project Report