Downloads · 30 days
104
0% of all-time downloads
aglazkova/bart_finetuned_keyphrase_extraction
bart_finetuned_keyphrase_extraction is a machine learning model from aglazkova. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This is the <a href="https://huggingface.co/facebook/bart-base"bart-base</a (<a href = "https://arxiv.org/abs/1910.13461"Lewis et al.. 2019</a) model finetuned for the keyphrase generation task (<a href="https://arxiv…
Downloads · 30 days
104
0% of all-time downloads
All-time downloads
2.8M
Public
Repo size
1.7 GB
Likes
14
Public
Click a slice to open those files.
.bin558 MB · 99%
From the Hugging Face model README
This is the <a href="https://huggingface.co/facebook/bart-base">bart-base</a> (<a href = "https://arxiv.org/abs/1910.13461">Lewis et al.. 2019</a>) model finetuned for the keyphrase generation task (<a href="https://arxiv.org/pdf/2312.10700.pdf">Glazkova & Morozov, 2023</a>) on the fragments of the following corpora:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("aglazkova/bart_finetuned_keyphrase_extraction")
model = AutoModelForSeq2SeqLM.from_pretrained("aglazkova/bart_finetuned_keyphrase_extraction")
text = "In this paper, we investigate cross-domain limitations of keyphrase generation using the models for abstractive text summarization.\
We present an evaluation of BART fine-tuned for keyphrase generation across three types of texts, \
namely scientific texts from computer science and biomedical domains and news texts. \
We explore the role of transfer learning between different domains to improve the model performance on small text corpora."
tokenized_text = tokenizer.prepare_seq2seq_batch([text], return_tensors='pt')
translation = model.generate(**tokenized_text)
translated_text = tokenizer.batch_decode(translation, skip_special_tokens=True)[0]
print(translated_text)
The following hyperparameters were used during training:
BibTeX:
@InProceedings{10.1007/978-3-031-67826-4_19,
author="Glazkova, Anna
and Morozov, Dmitry",
title="Cross-Domain Robustness of Transformer-Based Keyphrase Generation",
booktitle="Data Analytics and Management in Data Intensive Domains",
year="2024",
publisher="Springer Nature Switzerland",
address="Cham",
pages="249--265"
}