/ Модель

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

Контекст
512 токенов
Параметры
205 млн
Лицензия
Apache 2.0
Архитектура
bert · dense

multilingual-cpv-sector-classifier

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

Многоязычная BERT-модель классифицирует описания государственных закупок по 45 секторам CPV.

59скачиваний за 30 дней15лайковвеса обновлены28 ноя 2021

Бенчмарки

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

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

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

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

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

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

multilingual-cpv-sector-classifier — модель MKaan, дообученная на базе bert-base-multilingual-cased для классификации описаний закупок. Она относит текст к одному из 45 секторов, представленных описаниями кодов Общего словаря закупок ЕС (CPV), например строительству, здравоохранению, ИТ, транспорту и финансовым услугам. Модель использует архитектуру BERT для классификации последовательностей, содержит 205,1 млн параметров и принимает входные тексты длиной до 512 токенов.

Модель предназначена для автоматической категоризации объявлений о присуждённых государственных контрактах и сортировки закупок по секторам. В карточке заявлена поддержка 104 языков mBERT, однако оценка проводилась на 22 европейских языках; на тестовой выборке указан F1 0,686. Данные охватывают описания закупок ЕС за 2011–2018 годы, поэтому качество на других типах документов и за пределами этой предметной области может отличаться. Модель распространяется по лицензии Apache-2.0.

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

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

Ограничения

F1 на оценочной выборке составляет 0,686; оценка проводилась только на 22 европейских языках, хотя заявлена поддержка 104 языков. Данные ограничены описаниями присуждённых закупок ЕС за 2011–2018 годы, поэтому результаты на полных документах или в других областях могут отличаться.

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

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

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

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

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

Открыть на Hugging Face

multilingual-cpv-sector-classifier

This model is a fine-tuned version of bert-base-multilingual-cased on the Tenders Economic Daily Public Procurement Data. It achieves the following results on the evaluation set:

  • F1 Score: 0.686

Model description

The model takes procurement descriptions written in any of 104 languages and classifies them into 45 sector classes represented by CPV(Common Procurement Vocabulary) code descriptions as listed below.

Common Procurement Vocabulary
Administration, defence and social security services. 👮‍♀️
Agricultural machinery. 🚜
Agricultural, farming, fishing, forestry and related products. 🌾
Agricultural, forestry, horticultural, aquacultural and apicultural services. 👨🏿‍🌾
Architectural, construction, engineering and inspection services. 👷‍♂️
Business services: law, marketing, consulting, recruitment, printing and security. 👩‍💼
Chemical products. 🧪
Clothing, footwear, luggage articles and accessories. 👖
Collected and purified water. 🌊
Construction structures and materials; auxiliary products to construction (excepts electric apparatus). 🧱
Construction work. 🏗️
Education and training services. 👩🏿‍🏫
Electrical machinery, apparatus, equipment and consumables; Lighting. ⚡
Financial and insurance services. 👨‍💼
Food, beverages, tobacco and related products. 🍽️
Furniture (incl. office furniture), furnishings, domestic appliances (excl. lighting) and cleaning products. 🗄️
Health and social work services. 👨🏽‍⚕️
Hotel, restaurant and retail trade services. 🏨
IT services: consulting, software development, Internet and support. 🖥️
Industrial machinery. 🏭
Installation services (except software). 🛠️
Laboratory, optical and precision equipments (excl. glasses). 🔬
Leather and textile fabrics, plastic and rubber materials. 🧵
Machinery for mining, quarrying, construction equipment. ⛏️
Medical equipments, pharmaceuticals and personal care products. 💉
Mining, basic metals and related products. ⚙️
Musical instruments, sport goods, games, toys, handicraft, art materials and accessories. 🎸
Office and computing machinery, equipment and supplies except furniture and software packages. 🖨️
Other community, social and personal services. 🧑🏽‍🤝‍🧑🏽
Petroleum products, fuel, electricity and other sources of energy. 🔋
Postal and telecommunications services. 📶
Printed matter and related products. 📰
Public utilities. ⛲
Radio, television, communication, telecommunication and related equipment. 📡
Real estate services. 🏠
Recreational, cultural and sporting services. 🚴
Repair and maintenance services. 🔧
Research and development services and related consultancy services. 👩‍🔬
Security, fire-fighting, police and defence equipment. 🧯
Services related to the oil and gas industry. ⛽
Sewage-, refuse-, cleaning-, and environmental services. 🧹
Software package and information systems. 🔣
Supporting and auxiliary transport services; travel agencies services. 🚃
Transport equipment and auxiliary products to transportation. 🚌
Transport services (excl. Waste transport). 💺

Intended uses & limitations

  • Input description should be written in any of the 104 languages that MBERT supports.
  • The model is just evaluated in 22 languages. Thus there is no information about the performances in other languages.
  • The domain is also restricted by the awarded procurement notice descriptions in European Union. Evaluating on whole document texts might change the performance.

Training and evaluation data

  • The whole data consists of 744,360 rows. Shuffled and split into train and validation sets by using 80%/20% manner.
  • Each description represents a unique contract notice description awarded between 2011 and 2018.
  • Both training and validation data have contract notice descriptions written in 22 European Languages. (Malta and Irish are extracted due to scarcity compared to whole data)

Training procedure

The training procedure has been completed on Google Cloud V3-8 TPUs. Thanks Google for giving the access to Cloud TPUs

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-05
  • num_epochs: 3
  • gradient_accumulation_steps: 8
  • batch_size_per_device: 4
  • total_train_batch_size: 32

Training results

EpochStepF1 Score
118,6090.630
237,2180.674
355,8270.686
LanguageF1 ScoreTest Size
PL0.75913950
RO0.7363522
SK0.7191122
LT0.6872424
HU0.6811879
BG0.6752459
CS0.6682694
LV0.664836
DE0.64535354
FI0.6441898
ES0.6437483
PT0.631874
EN0.63116615
HR0.626865
IT0.6268035
NL0.6245640
EL0.6231724
SL0.615482
SV0.6073326
DA0.6031925
FR0.60133113
ET0.572458

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
BertForSequenceClassification
Ревизия весов
593b7b5

0 моделей