metadata
language:
- en
datasets:
- pubmed
metrics:
- f1
pipeline_tag: text-classification
tags:
- text-classification
- document sections
- sentence classification
- document classification
- medical
- health
- biomedical
widget:
- text: >-
many pathogenic processes and diseases are the result of an erroneous
activation of the complement cascade and a number of inhibitors of
complement have thus been examined for anti-inflammatory actions.
example_title: background example
- text: a total of 192 mi patients and 140 control persons were included.
example_title: methods example
- text: >-
mi patients had 18 % higher plasma levels of map44 (iqr 11-25 %) as
compared to the healthy control group (p < 0. 001.)
example_title: results example
- text: >-
the finding that a brief cb group intervention delivered by real-world
providers significantly reduced mdd onset relative to both brochure
control and bibliotherapy is very encouraging, although effects on
continuous outcome measures were small or nonsignificant and approximately
half the magnitude of those found in efficacy research, potentially
because the present sample reported lower initial depression.
example_title: conclusions example
- text: >-
in order to understand and update the prevalence of myopia in taiwan, a
nationwide survey was performed in 1995.
example_title: objective example
scibert-scivocab-uncased_pub_section
- original model file name: textclassifer_scibert_scivocab_uncased_pubmed_full
- This is a fine-tuned checkpoint of
allenai/scibert_scivocab_uncased
for document section text classification - possible document section classes are:BACKGROUND, CONCLUSIONS, METHODS, OBJECTIVE, RESULTS,
usage in python
install transformers as needed: pip install -U transformers
run the following, changing the example text to your use case:
from transformers import pipeline
model_tag = "ml4pubmed/scibert-scivocab-uncased_pub_section"
classifier = pipeline(
'text-classification',
model=model_tag,
)
prompt = """
Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train.
"""
classifier(
prompt,
) # classify the sentence
metadata
training_metrics
date_run: Apr-25-2022_t-03
huggingface_tag: allenai/scibert_scivocab_uncased
training_parameters
date_run: Apr-25-2022_t-03
huggingface_tag: allenai/scibert_scivocab_uncased