/ Модель

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

Контекст
8 192 токена
Параметры
149 млн
Лицензия
MIT
Архитектура
modernbert · dense
Базовая модель
ModernBERT-base
Библиотека
transformers
Опубликована
6 июн 2025

meta-rater-cleanliness-rating

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

Дообученная ModernBERT-base оценивает структурную чистоту текста по шкале от 0 до 5 для фильтрации и отбора данных.

108скачиваний за 30 дней0лайковвеса обновлены11 июн 2025

Бенчмарки

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

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

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

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

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

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

opendatalab разработала эту модель для оценки структурной чистоты текста в рамках метода Meta-rater. Это дообученная ModernBERT-base с 149 млн параметров, реализованная как ModernBertForSequenceClassification. Модель присваивает тексту непрерывную оценку от 0 до 5: чем выше балл, тем лучше форматирование, полнота и отсутствие шума.

Модель подходит для фильтрации результатов веб-скрейпинга, очистки наборов данных, отбора текстов для предобучения языковых моделей и автоматической проверки качества документов. Она оценивает структурные свойства, например артефакты извлечения, обрывки предложений, повреждённые символы, избыток ссылок и рекламы; смысл, тематику, стиль и грамматическую сложность не оценивает. В README приведены показатели 87,88% F1 и 92,25% accuracy.

Модель принимает текст и выдаёт оценку качества. В README заявлено контекстное окно 4096 токенов, а метаданные указывают нативный контекст до 8192 токенов. Она рассчитана преимущественно на английский текст; качество на технических форматах, коде и математической записи может меняться. Лицензия — MIT.

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

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

Ограничения

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

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Cleanliness Rating Model

This repository contains the model described in the paper Meta-rater: A Multi-dimensional Data Selection Method for Pre-training Language Models.

Code: https://github.com/opendatalab/Meta-rater

Model Description

This model is a fine-tuned version of ModernBERT-base designed to evaluate the Cleanliness dimension of text quality on a 5-point scale (0-5). Cleanliness measures how well-formatted, complete, and noise-free a text is, focusing on structural integrity rather than semantic content.

Model Details

  • Base Model: ModernBERT-base
  • Parameters: 149M
  • Context Window: 4,096 tokens
  • Task: Text quality rating (regression)
  • Score Range: 0-5 (continuous)
  • Performance: 87.88% F1 score, 92.25% accuracy

Rating Scale

The model uses a 5-point rating system based on four key criteria:

  • 0: Absolute noisy content.
  • 1: Serious formatting/structural issues that significantly affect fluency
  • 2: Obvious problems that noticeably affect reading fluency
  • 3: Some problems present but don't seriously impact reading fluency
  • 4: Minor issues that don't affect overall readability
  • 5: Perfect formatting and structure across all criteria

Evaluation Criteria

The model assesses text across four main dimensions:

1. Correct Formatting

  • Text appears human-edited rather than machine-extracted
  • No inappropriate or corrupted characters
  • Proper text structure and layout

2. Appropriate Content

  • No irrelevant links, advertisements, or spam
  • Sufficient content length to extract clear structure and theme
  • Content focused on the main topic

3. Completeness Content

  • Complete sentences written naturally by humans
  • Coherent opinions, facts, or stories rather than fragments
  • Proper article structure and flow

Note: Text ending with $TRUNCATED$ is considered a manual ending flag and doesn't affect completeness scoring.

Usage

from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

# Load the model and tokenizer
model_name = "opendatalab/meta-rater-cleanliness-rating"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)

# Example text
text = "This is a well-formatted article about renewable energy. It contains complete sentences and proper structure."

# Tokenize and predict
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=4096)
with torch.no_grad():
    outputs = model(**inputs)
    score = outputs.logits.squeeze().argmax(dim=0)

print(f"Cleanliness Score: {score:.2f}")

Training Details

  • Training Data: 747,422 examples from SlimPajama dataset
  • Annotation Model: Llama-3.3-70B-Instruct
  • Training Epochs: 10
  • Evaluation Split: 93,428 test examples
  • Data Split: 8:1:1 (train:dev:test)

Applications

This model is particularly useful for:

  • Web scraping quality control and content filtering
  • Data preprocessing for machine learning datasets
  • Content management systems for automated quality checks
  • Data curation for language model pre-training
  • Document digitization quality assessment
  • Automated content moderation and filtering

Common Issues Detected

The model can identify various types of text quality problems:

  • Formatting artifacts from web scraping or OCR
  • Incomplete sentences or fragmented text
  • Excessive links or promotional content
  • Corrupted characters or encoding issues
  • Poor structure with inadequate content organization
  • Advertisement contamination and irrelevant insertions

What the Model Does NOT Consider

  • The specific language the text is written in
  • The length of the text
  • Usage of placeholders for data privacy or safety
  • Content topic, professionalism, or semantic meaning
  • Writing style or grammatical sophistication

Use Cases by Score Range

  • 4.0-5.0: High-quality content suitable for training data
  • 3.0-3.9: Acceptable content with minor cleaning needed
  • 2.0-2.9: Moderate issues requiring preprocessing
  • 1.0-1.9: Significant problems, may need extensive cleaning
  • 0.0-0.9: Poor quality, likely unsuitable for most applications

Limitations

  • Designed primarily for English text
  • May not detect all domain-specific formatting conventions
  • Performance may vary for highly technical formats (code, mathematical notation)
  • Should be used in conjunction with other quality metrics for comprehensive assessment

Citation

If you use this model in your research, please cite:

@article{zhuang2025meta,
  title={Meta-rater: A Multi-dimensional Data Selection Method for Pre-training Language Models},
  author={Zhuang, Xinlin and Peng, Jiahui and Ma, Ren and Wang, Yinfan and Bai, Tianyi and Wei, Xingjian and Qiu, Jiantao and Zhang, Chi and Qian, Ying and He, Conghui},
  journal={arXiv preprint arXiv:2504.14194},
  year={2025}
}

You can find more details about Meta-rater at https://github.com/opendatalab/Meta-rater.

License

This model is released under the same license as the base ModernBERT model.

Contact

For questions or issues, please contact the authors or open an issue in the repository.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
ModernBertForSequenceClassification
Ревизия весов
4403a95

0 моделей