readme: ---
  license: apache-2.0
  tags:
  - generated_from_trainer
  metrics:
  - f1
  - accuracy
  model-index:
  - name: roberta-finetuned-CPV_Spanish
    results: []
  ---
  
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
  should probably proofread and complete it, then remove this comment. -->
  
  # roberta-finetuned-CPV_Spanish
  
  This model is a fine-tuned version of [PlanTL-GOB-ES/roberta-base-bne](https://huggingface.co/PlanTL-GOB-ES/roberta-base-bne) on a dataset derived from Spanish Public Procurement documents from 2019. The whole fine-tuning process is available in the following [Kaggle notebook](https://www.kaggle.com/code/marianavasloro/fine-tuned-roberta-for-spanish-cpv-codes).
  
  It achieves the following results on the evaluation set:
  - Loss: 0.0465
  - F1: 0.7918
  - Roc Auc: 0.8860
  - Accuracy: 0.7376
  - Coverage Error: 10.2744
  - Label Ranking Average Precision Score: 0.7973
  
  ## Intended uses & limitations
  
  This model only predicts the first two digits of the CPV codes. The list of divisions CPV codes is the following:
  
  | Division |                                                      English                                                     | Spanish                                                                                                                                            |   |   |   |
  |----------|:----------------------------------------------------------------------------------------------------------------:|----------------------------------------------------------------------------------------------------------------------------------------------------|:-:|:-:|:-:|
  | 03       |  Agricultural, farming, fishing, forestry and   related products                                                 |  Productos de la agricultura, ganadería,   pesca, silvicultura y productos afines                                                                  |   |   |   |
  | 09       |  Petroleum products, fuel,   electricity and other sources of energy                                             |  Derivados del petróleo,   combustibles, electricidad y otras fuentes de energía                                                                   |   |   |   |
  | 14       |  Mining, basic metals and related   products                                                                     |  Productos de la minería, de   metales de base y productos afines                                                                                  |   |   |   |
  | 15       |  Food, beverages, tobacco and   related products                                                                 |  Alimentos, bebidas, tabaco y   productos afines                                                                                                   |   |   |   |
  | 16       |  Agricultural machinery                                                                                          |  Maquinaria agrícola                                                                                                                               |   |   |   |
  | 18       |  Clothing, footwear, luggage   articles and accessories                                                          |  Prendas de vestir, calzado,   artículos de viaje y accesorios                                                                                     |   |   |   |
  | 19       |  Leather and textile fabrics,   plastic and rubber materials                                                     |  Piel y textiles, materiales de   plástico y caucho                                                                                                |   |   |   |
  | 22       |  Printed matter and related   products                                                                           |  Impresos y productos relacionados                                                                                                                 |   |   |   |
  | 24       |  Chemical products                                                                                               |  Productos químicos                                                                                                                                |   |   |   |
  | 30       |  Office and computing machinery,   equipment and supplies except furniture and software packages                 |  Máquinas, equipo y artículos de   oficina y de informática, excepto mobiliario y paquetes de software                                             |   |   |   |
  | 31       |  Electrical machinery, apparatus,   equipment and consumables; lighting                                          |  Máquinas, aparatos, equipo y   productos consumibles eléctricos; iluminación                                                                      |   |   |   |
  | 32       |  Radio, television, communication,   telecommunication and related equipment                                     |  Equipos de radio, televisión,   co