pszemraj's picture
tags
db9cc5d
metadata
language:
  - en
datasets:
  - pubmed
metrics:
  - f1
tags:
  - text-classification
  - document sections
  - sentence classification
  - document classification
  - medical
  - health
  - biomedical
pipeline_tag: text-classification
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

xtremedistil-l12-h384-uncased_pub_section

  • original model file name: textclassifer_xtremedistil-l12-h384-uncased_pubmed_20k
  • This is a fine-tuned checkpoint of microsoft/xtremedistil-l12-h384-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/xtremedistil-l12-h384-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_parameters

  • date_run: Apr-24-2022_t-12

  • huggingface_tag: microsoft/xtremedistil-l12-h384-uncased