Views
No views yet
microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext for document section text classificationpip install -U transformers1from transformers import pipeline
2
3model_tag = "ml4pubmed/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext_pub_section"
4classifier = pipeline(
5 'text-classification',
6 model=model_tag,
7 )
8
9prompt = """
10Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train.
11"""
12
13classifier(
14 prompt,
15) # classify the sentence
16