/ Модель

Характеристики

Параметры
138 млн
Лицензия
CC BY 4.0
Архитектура
t5 · dense
Опубликована
27 сен 2022

vlt5-base-keywords

Генерация текстаТекст → текст3 профессии

Модель на базе T5 генерирует ключевые фразы для научных текстов по заголовку и аннотации, преимущественно на польском и английском языках.

338 тыс.скачиваний за 30 дней55лайковвеса обновлены16 авг 2023

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Voicelab/vlt5-base-keywords — модель генерации ключевых фраз, обученная NLP Research Team компании Voicelab.ai на научных аннотациях и заголовках из польского корпуса POSMAC. Это энкодер-декодер на архитектуре T5 с 137,5 млн параметров, основанный на t5-base. Модель получает заголовок и аннотацию статьи и генерирует ключевые слова, используя как извлечение фраз из текста, так и абстрактивную генерацию.

Модель рассчитана прежде всего на польский и английский языки и может применяться для автоматической индексации научных публикаций, подготовки метаданных и поиска статей по содержанию. Обычно для аннотации сопоставимой с обучающими данными длины она генерирует около 3–5 ключевых фраз. Более длинный текст рекомендуется разделять на небольшие фрагменты.

Ключевое ограничение — результат может быть точным, но неполным; длина входного текста и число ключевых слов влияют на соответствие обучающим данным. Репозиторий распространяется по лицензии CC BY 4.0.

Сценарии применения

  • извлечение ключевых фраз из аннотаций научных статей
  • автоматическая индексация научных публикаций
  • подготовка ключевых слов для карточек и метаданных статей
  • генерация поисковых терминов по заголовку и аннотации публикации

Ограничения

Ключевые фразы могут быть точными, но неполными; для длинных текстов рекомендуется разбивать их на фрагменты, поскольку модель обучалась на заголовках и аннотациях ограниченной длины.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Keyword Extraction from Short Texts with T5

Our vlT5 model is a keyword generation model based on encoder-decoder architecture using Transformer blocks presented by Google (https://huggingface.co/t5-base). The vlT5 was trained on scientific articles corpus to predict a given set of keyphrases based on the concatenation of the article’s abstract and title. It generates precise, yet not always complete keyphrases that describe the content of the article based only on the abstract.

Keywords generated with vlT5-base-keywords: encoder-decoder architecture, keyword generation

Results on demo model (different generation method, one model per language):

Our vlT5 model is a keyword generation model based on encoder-decoder architecture using Transformer blocks presented by Google (https://huggingface.co/t5-base). The vlT5 was trained on scientific articles corpus to predict a given set of keyphrases based on the concatenation of the article’s abstract and title. It generates precise, yet not always complete keyphrases that describe the content of the article based only on the abstract.

Keywords generated with vlT5-base-keywords: encoder-decoder architecture, vlT5, keyword generation, scientific articles corpus

vlT5

The biggest advantage is the transferability of the vlT5 model, as it works well on all domains and types of text. The downside is that the text length and the number of keywords are similar to the training data: the text piece of an abstract length generates approximately 3 to 5 keywords. It works both extractive and abstractively. Longer pieces of text must be split into smaller chunks, and then propagated to the model.

Overview

Corpus

The model was trained on a POSMAC corpus. Polish Open Science Metadata Corpus (POSMAC) is a collection of 216,214 abstracts of scientific publications compiled in the CURLICAT project.

DomainsDocumentsWith keywords
Engineering and technical sciences58 97457 165
Social sciences58 16641 799
Agricultural sciences29 81115 492
Humanities22 75511 497
Exact and natural sciences13 5799 185
Humanities, Social sciences12 8097 063
Medical and health sciences6 0303 913
Medical and health sciences, Social sciences828571
Humanities, Medical and health sciences, Social sciences601455
Engineering and technical sciences, Humanities312312

Tokenizer

As in the original plT5 implementation, the training dataset was tokenized into subwords using a sentencepiece unigram model with vocabulary size of 50k tokens.

Usage

from transformers import T5Tokenizer, T5ForConditionalGeneration

model = T5ForConditionalGeneration.from_pretrained("Voicelab/vlt5-base-keywords")
tokenizer = T5Tokenizer.from_pretrained("Voicelab/vlt5-base-keywords")

task_prefix = "Keywords: "
inputs = [
    "Christina Katrakis, who spoke to the BBC from Vorokhta in western Ukraine, relays the account of one family, who say Russian soldiers shot at their vehicles while they were leaving their village near Chernobyl in northern Ukraine. She says the cars had white flags and signs saying they were carrying children.",
    "Decays the learning rate of each parameter group by gamma every step_size epochs. Notice that such decay can happen simultaneously with other changes to the learning rate from outside this scheduler. When last_epoch=-1, sets initial lr as lr.",
    "Hello, I'd like to order a pizza with salami topping.",
]

for sample in inputs:
    input_sequences = [task_prefix + sample]
    input_ids = tokenizer(
        input_sequences, return_tensors="pt", truncation=True
    ).input_ids
    output = model.generate(input_ids, no_repeat_ngram_size=3, num_beams=4)
    predicted = tokenizer.decode(output[0], skip_special_tokens=True)
    print(sample, "\n --->", predicted)

Inference

Our results showed that the best generation results were achieved with no_repeat_ngram_size=3, num_beams=4

Results

MethodRankMicroMacro
PRF1PRF1
extremeText10.1750.0380.0630.0070.0040.005
30.1170.0770.0930.0110.0110.011
50.0900.0990.0940.0130.0160.015
100.0600.1310.0820.0150.0250.019
vlT5kw10.3450.0760.1240.0540.0470.050
30.3280.2120.2570.1330.1270.129
50.3180.2370.2710.1430.1400.141
KeyBERT10.0300.0070.0110.0040.0030.003
30.0150.0100.0120.0060.0040.005
50.0110.0120.0110.0060.0050.005
TermoPL10.1180.0260.0430.0040.0030.003
30.0700.0460.0560.0060.0050.006
50.0510.0560.0530.0070.0070.007
all0.0250.3390.0470.0170.0300.022
extremeText10.2100.0770.1120.0370.0170.023
30.1390.1520.1450.0450.0420.043
50.1070.1960.1390.0490.0630.055
100.0720.2620.1120.0410.0980.058
vlT5kw10.3770.1380.2020.1190.0710.089
30.3610.3010.3280.1850.1470.164
50.3570.3160.3350.1880.1530.169
KeyBERT10.0180.0070.0100.0030.0010.001
30.0090.0100.0090.0040.0010.002
50.0070.0120.0090.0040.0010.002
TermoPL10.0760.0280.0410.0020.0010.001
30.0460.0510.0480.0030.0010.002
50.0330.0610.0430.0030.0010.002
all0.0210.4570.0400.0040.0080.005

License

CC BY 4.0

Citation

If you use this model, please cite the following paper: Pęzik, P., Mikołajczyk, A., Wawrzyński, A., Żarnecki, F., Nitoń, B., Ogrodniczuk, M. (2023). Transferable Keyword Extraction and Generation with Text-to-Text Language Models. In: Mikyška, J., de Mulatier, C., Paszynski, M., Krzhizhanovskaya, V.V., Dongarra, J.J., Sloot, P.M. (eds) Computational Science – ICCS 2023. ICCS 2023. Lecture Notes in Computer Science, vol 14074. Springer, Cham. https://doi.org/10.1007/978-3-031-36021-3_42

OR

Piotr Pęzik, Agnieszka Mikołajczyk-Bareła, Adam Wawrzyński, Bartłomiej Nitoń, Maciej Ogrodniczuk, Keyword Extraction from Short Texts with a Text-To-Text Transfer Transformer, ACIIDS 2022

Authors

The model was trained by NLP Research Team at Voicelab.ai.

You can contact us here.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Можно запустить

Подбираем GPU…

Класс архитектуры
T5ForConditionalGeneration
Ревизия весов
89a069b

0 моделей