fastText
Spanish
gensim
word-embeddings
skip-gram
economics
finance
banking
central-banks
spanish
ecobecs
Instructions to use ESAUCS/EcoBECS-FastText-Embeddings with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- fastText
How to use ESAUCS/EcoBECS-FastText-Embeddings with fastText:
from huggingface_hub import hf_hub_download import fasttext model = fasttext.load_model(hf_hub_download("ESAUCS/EcoBECS-FastText-Embeddings", "model.bin")) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,66 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-4.0
|
| 3 |
+
language:
|
| 4 |
+
- es
|
| 5 |
+
tags:
|
| 6 |
+
- word-embeddings
|
| 7 |
+
- fasttext
|
| 8 |
+
- skip-gram
|
| 9 |
+
- economics
|
| 10 |
+
- finance
|
| 11 |
+
- banking
|
| 12 |
+
- central-banks
|
| 13 |
+
- spanish
|
| 14 |
+
- ecobecs
|
| 15 |
+
library_name: gensim
|
| 16 |
---
|
| 17 |
+
|
| 18 |
+
# EcoBECS Word Embeddings (`EcoBECS_ft-sg`) — EcoBECS Collection
|
| 19 |
+
|
| 20 |
+
## Model Description
|
| 21 |
+
This repository hosts the **EcoBECS** (*Economic and Banking Extended Corpus & Sources*) Spanish word embedding models trained with **fastText** (`Skip-gram`) on a specialized corpus of economics, central banking, and finance texts.
|
| 22 |
+
|
| 23 |
+
The experimental suite comprises **27 models** generated across three text-normalization variants (`base`, `lower`, `fined`), three vector dimensionalities (`300`, `400`, `500`), and three training epoch settings (`10`, `15`, `20`), exported in both binary (`.bin`) and plain-text vector (`.vec`) formats following the naming convention:
|
| 24 |
+
|
| 25 |
+
`EcoBECS_ft-sg_ws8_dim<D>_ep<E>_2026_<variant>`
|
| 26 |
+
|
| 27 |
+
## Training Corpus & Preprocessing
|
| 28 |
+
The embedding models were trained sequentially line-by-line (444,687 lines) over specialized Spanish and translated economic/financial sources integrated within the **EcoBECS** ecosystem (~74,416 documents across the broader collection):
|
| 29 |
+
- **Banxico Quarterly Reports (`Banxico_Quarterly_Reports_ES`):** 86 historical inflation and monetary policy reports (2000–2021, including the Q3 2009 addendum) with encoding cleanup.
|
| 30 |
+
- **JEL Classification Catalog (`JEL_Classification_Catalog`):** Spanish taxonomy descriptors, keywords, and scope notes.
|
| 31 |
+
- **Central Bank Speeches (`CBS_Speeches_ES`):** Central bank speeches and monetary policy communications in Spanish.
|
| 32 |
+
- **Academic Literature & Working Papers (`CB_abstracts_journals_ES` & `CB_abstracts_papers_ES`):** Economics/finance journal abstracts and central bank working paper abstracts in Spanish.
|
| 33 |
+
|
| 34 |
+
### Corpus Variants
|
| 35 |
+
- **`base`:** Preserves original casing, punctuation, and accents (replacing em-dashes with spaces).
|
| 36 |
+
- **`lower`:** Lowercases the base text to reduce lexical sparsity from capitalization.
|
| 37 |
+
- **`fined`:** Applies Unicode NFKD normalization, strips punctuation, symbols, digits, and diacritics, caps consecutive repeated characters, and lowercases the text.
|
| 38 |
+
|
| 39 |
+
## Training Configuration
|
| 40 |
+
- **Architecture:** `fastText` Skip-gram (`model='skipgram'`)
|
| 41 |
+
- **Context window (`ws`):** `8`
|
| 42 |
+
- **Minimum word count (`minCount`):** `5`
|
| 43 |
+
- **Dimensionalities:** `300`, `400`, `500`
|
| 44 |
+
- **Epochs:** `10`, `15`, `20`
|
| 45 |
+
|
| 46 |
+
## EcoBECS Project Context & Authorship
|
| 47 |
+
- **Curator / Author:** Benjamín Esaú Contreras-Solis
|
| 48 |
+
- **Project:** EcoBECS (*Economic and Banking Extended Corpus & Sources*) — Maestría en Ciencia de Datos e Información, INFOTEC, Centro de Investigación e Innovación en Tecnologías de la Información y Comunicación, Ciudad de México, México
|
| 49 |
+
- **Thesis Advisor:** Dr. Sabino Miranda-Jiménez — Departamento de Informática, Universidad Autónoma de la Ciudad de México, Ciudad de México, México
|
| 50 |
+
- **Reference Project:** Master's Thesis in Data Science and Information (INFOTEC, 2026)
|
| 51 |
+
|
| 52 |
+
## Intended Use & Limitations
|
| 53 |
+
- **Intended use:** Static subword-aware word representations in Spanish for economic, banking, and financial text classification (e.g., with `LinearSVC`), semantic similarity analysis, and benchmarking against TF-IDF, Spanish Transformers (*BETO*, *RoBERTuito*), and fine-tuned LLMs (*Qwen2.5-7B-Instruct* with *QLoRA*).
|
| 54 |
+
- **Limitations:** As static word/subword embeddings, they do not capture dynamic sentence-level contextual disambiguation. Some source texts were machine-translated into Spanish, and representations reflect the institutional and academic domain of the training corpus. Licensed under `CC BY-NC 4.0` for non-commercial use with attribution.
|
| 55 |
+
|
| 56 |
+
## Citation
|
| 57 |
+
If you use these embeddings in your research or applications, please cite the **EcoBECS** work and collection:
|
| 58 |
+
|
| 59 |
+
```bibtex
|
| 60 |
+
@misc{contreras2026ecobecs_embeddings,
|
| 61 |
+
title = {EcoBECS -- Economic and Banking Extended Corpus \& Sources: Spanish fastText Word Embeddings},
|
| 62 |
+
author = {Contreras-Solis, Benjam{\'i}n Esa{\'u} and Miranda-Jim{\'e}nez, Sabino},
|
| 63 |
+
year = {2026},
|
| 64 |
+
howpublished = {Hugging Face (ESAUCS / EcoBECS Collection)},
|
| 65 |
+
note = {Maestr{\'i}a en Ciencia de Datos e Informaci{\'o}n, INFOTEC}
|
| 66 |
+
}
|