Edit model card

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

Downloads last month
6
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.

Dataset used to train ml4pubmed/xtremedistil-l12-h384-uncased_pub_section