Downloads · 30 days
11
1% of all-time downloads
ml4pubmed/xtremedistil-l12-h384-uncased_pub_section
xtremedistil-l12-h384-uncased_pub_section is a text classification model from ml4pubmed. Use it when you need a label for a piece of text. It is set up for transformers.
- original model file name: textclassiferxtremedistil-l12-h384-uncasedpubmed20k - This is a fine-tuned checkpoint of microsoft/xtremedistil-l12-h384-uncased for document section text classification - possible document…
Downloads · 30 days
11
1% of all-time downloads
All-time downloads
839
Public
Repo size
267 MB
Likes
0
Public
Click a slice to open those files.
.bin134 MB · 99%
From the Hugging Face model README
microsoft/xtremedistil-l12-h384-uncased for document section text classificationinstall 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
date_run: Apr-24-2022_t-12
huggingface_tag: microsoft/xtremedistil-l12-h384-uncased