This model is a
RoBERTa base model
that was further trained using a masked language modeling task on a compendium of english scientific textual examples from the life sciences using the
BioLang dataset
. It has then been fine-tuned for token classification on the SourceData
sd-nlp
dataset with the
SMALL_MOL_ROLES
configuration to perform pure context-dependent semantic role classification of bioentities.
Intended uses & limitations
How to use
The intended use of this model is to infer the semantic role of small molecules with regard to the causal hypotheses tested in experiments reported in scientific papers.
To have a quick check of the model:
from transformers import pipeline, RobertaTokenizerFast, RobertaForTokenClassification
example = """<s>The <mask> overexpression in cells caused an increase in <mask> expression.</s>"""
tokenizer = RobertaTokenizerFast.from_pretrained('roberta-base', max_len=512)
model = RobertaForTokenClassification.from_pretrained('EMBO/sd-smallmol-roles')
ner = pipeline('ner', model, tokenizer=tokenizer)
res = ner(example)
for r in res:
print(r['word'], r['entity'])
Limitations and bias
The model must be used with the
roberta-base
tokenizer.
Training data
The model was trained for token classification using the
EMBO/sd-nlp dataset
which includes manually annotated examples.
Training procedure
The training was run on a NVIDIA DGX Station with 4XTesla V100 GPUs.
sd-smallmol-roles huggingface.co is an AI model on huggingface.co that provides sd-smallmol-roles's model effect (), which can be used instantly with this EMBO sd-smallmol-roles model. huggingface.co supports a free trial of the sd-smallmol-roles model, and also provides paid use of the sd-smallmol-roles. Support call sd-smallmol-roles model through api, including Node.js, Python, http.
sd-smallmol-roles huggingface.co is an online trial and call api platform, which integrates sd-smallmol-roles's modeling effects, including api services, and provides a free online trial of sd-smallmol-roles, you can try sd-smallmol-roles online for free by clicking the link below.
EMBO sd-smallmol-roles online free url in huggingface.co:
sd-smallmol-roles is an open source model from GitHub that offers a free installation service, and any user can find sd-smallmol-roles on GitHub to install. At the same time, huggingface.co provides the effect of sd-smallmol-roles install, users can directly use sd-smallmol-roles installed effect in huggingface.co for debugging and trial. It also supports api for free installation.