/ Модель

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

Контекст
512 токенов
Параметры
212 млн
Лицензия
Apache 2.0
Архитектура
deberta-v2 · dense
Базовая модель
deberta-v3-base
Опубликована
5 окт 2024

deberta-v3-base-readability-v2

Классификация текстаТекст → label4 профессии

Англоязычная DeBERTa V3 Base оценивает сложность текста, предсказывая примерный уровень школьного чтения в США.

851скачиваний за 30 дней1лайквеса обновлены5 окт 2024

Бенчмарки

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

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

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

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

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

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

Это англоязычная модель DeBERTa V3 Base, разработанная на основе microsoft/deberta-v3-base и дообученная для оценки читаемости текста. Она принимает текст и предсказывает примерный класс обучения в американской школьной системе, соответствующий уровню понимания; более высокое значение означает более сложный текст. Модель содержит 211,6 млн параметров, использует архитектуру DeBERTa V2 для классификации последовательностей и рассчитана на контекст до 512 токенов.

Модель подходит для оценки сложности англоязычных отрывков в образовательных и редакторских сценариях. Обучение проводилось на 105 тысячах абзацев из разных источников; на отложенной выборке указана RMSE 0,5038. Точность может снижаться на текстах, заметно отличающихся от обучающих данных. Оценка опирается на текстовые закономерности и не учитывает знакомство читателя с темой или культурный контекст, поэтому её не следует использовать как единственное основание для определения пригодности текста аудитории. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

DeBERTa V3 Base and XSmall for Readability Assessment

This is one of two fine-tuned versions of DeBERTa V3 (Base and XSmall) for assessing text readability.

Model Details

  • Architecture: DeBERTa V3 (Base and XSmall variants)
  • Task: Regression (Readability Assessment)
  • Training Data: 105,000 paragraphs from diverse sources
  • Input: Text
  • Output: Estimated U.S. grade level for text comprehension
    • Higher values indicate more complex text.

Performance

Root mean squared error (RMSE) on 20% held-out validation set:

ModelRMSE
Base0.5038
XSmall0.6296

Training Data

The models were trained on a diverse dataset of 105 000 paragraphs with the following characteristics:

  • Character length: 50 to 2 000
  • Interquartile Range (IQR) of readability grades < 1

Sources:

  • HuggingFace's Fineweb-Edu
  • Ronen Eldan's TinyStories
  • Wikipedia-2023-11-embed-multilingual-v3 (English only)
  • ArXiv Abstracts-2021

For more details, please see agentlans/readability.

Usage

Example on how to use the model:

from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

model_name="agentlans/deberta-v3-base-readability-v2"

# Put model on GPU or else CPU
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = model.to(device)

def readability(text):
    """Processes the text using the model and returns its logits.
    In this case, it's reading grade level in years of education
    (the higher the number, the harder it is to read the text)."""
    inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True).to(device)
    with torch.no_grad():
        logits = model(**inputs).logits.squeeze().cpu()
    return logits.tolist()

# Example usage
texts = [x.strip() for x in """
The cat sat on the mat.
I like to eat pizza and ice cream for dinner.
The quick brown fox jumps over the lazy dog.
Students must complete their homework before watching television.
The intricate ecosystem of the rainforest supports a diverse array of flora and fauna.
Quantum mechanics describes the behavior of matter and energy at the molecular, atomic, nuclear, and even smaller microscopic levels.
The socioeconomic ramifications of globalization have led to unprecedented levels of interconnectedness and cultural homogenization.
The ontological argument for the existence of God posits that the very concept of a maximally great being necessitates its existence in reality.
""".strip().split("\n")]

result = readability(texts)
for x, s in zip(texts, result):
    print(f"Text: {x}\nReadability grade: {round(s, 2)}\n")

Example output for base size model:

Text: The cat sat on the mat.
Readability grade: 2.34

Text: I like to eat pizza and ice cream for dinner.
Readability grade: 3.56

Text: The quick brown fox jumps over the lazy dog.
Readability grade: 3.72

Text: Students must complete their homework before watching television.
Readability grade: 10.79

Text: The intricate ecosystem of the rainforest supports a diverse array of flora and fauna.
Readability grade: 11.1

Text: Quantum mechanics describes the behavior of matter and energy at the molecular, atomic, nuclear, and even smaller microscopic levels.
Readability grade: 17.11

Text: The socioeconomic ramifications of globalization have led to unprecedented levels of interconnectedness and cultural homogenization.
Readability grade: 19.53

Text: The ontological argument for the existence of God posits that the very concept of a maximally great being necessitates its existence in reality.
Readability grade: 16.8

Limitations

  • English language only
  • Performance may vary for texts significantly different from the training data
  • Output is based on statistical patterns and may not always align with human judgment
  • Readability is assessed purely on textual features, not considering factors like subject familiarity or cultural context

Ethical Considerations

  • Should not be used as the sole determinant of text suitability for specific audiences
  • Results may reflect biases present in the training data sources
  • Care should be taken when using these models in educational or publishing contexts

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

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

GPU в ailist

Универсальный рантайм · text-classification

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

Подбираем GPU…

Класс архитектуры
DebertaV2ForSequenceClassification
Ревизия весов
57bb5f7

0 моделей