initial commit
Browse files- .gitignore +44 -0
- README.md +32 -1
- config.json +25 -0
- pytorch_model.bin +3 -0
- special_tokens.json +1 -0
- vocab.txt +0 -0
.gitignore
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Ignore Python cache and compiled files
|
2 |
+
__pycache__/
|
3 |
+
*.py[cod]
|
4 |
+
*.pyo
|
5 |
+
|
6 |
+
# Ignore logs
|
7 |
+
*.log
|
8 |
+
logs/
|
9 |
+
*.out
|
10 |
+
|
11 |
+
# Ignore prediction files (JSON format)
|
12 |
+
*.json
|
13 |
+
|
14 |
+
# Ignore environment and dependency files
|
15 |
+
.env
|
16 |
+
*.env
|
17 |
+
*.venv
|
18 |
+
venv/
|
19 |
+
ENV/
|
20 |
+
*.lock
|
21 |
+
|
22 |
+
# Ignore Jupyter Notebook checkpoints
|
23 |
+
.ipynb_checkpoints
|
24 |
+
|
25 |
+
# Ignore temporary or backup files
|
26 |
+
*.bak
|
27 |
+
*.swp
|
28 |
+
*.tmp
|
29 |
+
|
30 |
+
# Ignore OS-specific files
|
31 |
+
.DS_Store
|
32 |
+
Thumbs.db
|
33 |
+
|
34 |
+
# Ignore model checkpoint files (optional)
|
35 |
+
checkpoint/
|
36 |
+
*.ckpt
|
37 |
+
|
38 |
+
# If using Hugging Face Model repository, don't ignore the following:
|
39 |
+
!config.json
|
40 |
+
!tokenizer_config.json
|
41 |
+
!tokenizer.json
|
42 |
+
!special_tokens.json
|
43 |
+
!added_tokens.json
|
44 |
+
!pytorch_model.bin
|
README.md
CHANGED
@@ -10,4 +10,35 @@ base_model:
|
|
10 |
- microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext
|
11 |
pipeline_tag: text-classification
|
12 |
library_name: transformers
|
13 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
- microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext
|
11 |
pipeline_tag: text-classification
|
12 |
library_name: transformers
|
13 |
+
---
|
14 |
+
|
15 |
+
# Fine-tuned RE Model for DiMB-RE
|
16 |
+
|
17 |
+
## Model Description
|
18 |
+
This is a fine-tuned **Relation Extraction (RE)** model based on the [BiomedNLP-BiomedBERT-base-uncased](https://huggingface.co/microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext) model, specifically designed for sentence classification task to extract relations between extract entities for diet, human metabolism and microbiome field. The model has been trained on the DiMB-RE dataset and is optimized to infer relationship with 13 relation types.
|
19 |
+
|
20 |
+
<!-- ### Key Features:
|
21 |
+
- **Language**: English
|
22 |
+
- **Task**: Token classification for Named Entity Recognition (NER)
|
23 |
+
- **Base Model**: BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext
|
24 |
+
- **Domains**: Biomedical, Clinical, Scientific -->
|
25 |
+
|
26 |
+
## Performance
|
27 |
+
The model has been evaluated on the DiMB-RE using the following metrics:
|
28 |
+
- **REL Strict** - P: 0.416, R: 0.336, F1: 0.371
|
29 |
+
- **REL Relaxed** - P: 0.448, R: 0.370, F1: 0.409
|
30 |
+
|
31 |
+
## Citation
|
32 |
+
If you use this model, please cite like below:
|
33 |
+
|
34 |
+
```bibtex
|
35 |
+
@misc{hong2024dimbreminingscientificliterature,
|
36 |
+
title={DiMB-RE: Mining the Scientific Literature for Diet-Microbiome Associations},
|
37 |
+
author={Gibong Hong and Veronica Hindle and Nadine M. Veasley and Hannah D. Holscher and Halil Kilicoglu},
|
38 |
+
year={2024},
|
39 |
+
eprint={2409.19581},
|
40 |
+
archivePrefix={arXiv},
|
41 |
+
primaryClass={cs.CL},
|
42 |
+
url={https://arxiv.org/abs/2409.19581},
|
43 |
+
}
|
44 |
+
```
|
config.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext",
|
3 |
+
"architectures": [
|
4 |
+
"BertForRelation"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 3072,
|
13 |
+
"layer_norm_eps": 1e-12,
|
14 |
+
"max_position_embeddings": 512,
|
15 |
+
"model_type": "bert",
|
16 |
+
"num_attention_heads": 12,
|
17 |
+
"num_hidden_layers": 12,
|
18 |
+
"pad_token_id": 0,
|
19 |
+
"position_embedding_type": "absolute",
|
20 |
+
"torch_dtype": "float32",
|
21 |
+
"transformers_version": "4.34.0",
|
22 |
+
"type_vocab_size": 2,
|
23 |
+
"use_cache": true,
|
24 |
+
"vocab_size": 30753
|
25 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:497718ca44902743585aec6cdad91a1d98f3509557e874a5d76bec99eb53a985
|
3 |
+
size 438744886
|
special_tokens.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|