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
|
Download README.md from ESAUCS/EcoBECS-FastText-Embeddings: direct link, hf CLI and curl.
- Browser
- Download file 4.25 kB
-
https://huggingface.co/ESAUCS/EcoBECS-FastText-Embeddings/resolve/main/README.md
- Command line
-
hf download hf://ESAUCS/EcoBECS-FastText-Embeddings/README.md
-
curl -L -o README.md https://huggingface.co/ESAUCS/EcoBECS-FastText-Embeddings/resolve/main/README.md
4.25 kB
| license: cc-by-nc-4.0 | |
| language: | |
| - es | |
| tags: | |
| - word-embeddings | |
| - fasttext | |
| - skip-gram | |
| - economics | |
| - finance | |
| - banking | |
| - central-banks | |
| - spanish | |
| - ecobecs | |
| library_name: gensim | |
| # EcoBECS Word Embeddings (`EcoBECS_ft-sg`) — EcoBECS Collection | |
| ## Model Description | |
| 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. | |
| 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: | |
| `EcoBECS_ft-sg_ws8_dim<D>_ep<E>_2026_<variant>` | |
| ## Training Corpus & Preprocessing | |
| 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): | |
| - **Banxico Quarterly Reports (`Banxico_Quarterly_Reports_ES`):** 86 historical inflation and monetary policy reports (2000–2021, including the Q3 2009 addendum) with encoding cleanup. | |
| - **JEL Classification Catalog (`JEL_Classification_Catalog`):** Spanish taxonomy descriptors, keywords, and scope notes. | |
| - **Central Bank Speeches (`CBS_Speeches_ES`):** Central bank speeches and monetary policy communications in Spanish. | |
| - **Academic Literature & Working Papers (`CB_abstracts_journals_ES` & `CB_abstracts_papers_ES`):** Economics/finance journal abstracts and central bank working paper abstracts in Spanish. | |
| ### Corpus Variants | |
| - **`base`:** Preserves original casing, punctuation, and accents (replacing em-dashes with spaces). | |
| - **`lower`:** Lowercases the base text to reduce lexical sparsity from capitalization. | |
| - **`fined`:** Applies Unicode NFKD normalization, strips punctuation, symbols, digits, and diacritics, caps consecutive repeated characters, and lowercases the text. | |
| ## Training Configuration | |
| - **Architecture:** `fastText` Skip-gram (`model='skipgram'`) | |
| - **Context window (`ws`):** `8` | |
| - **Minimum word count (`minCount`):** `5` | |
| - **Dimensionalities:** `300`, `400`, `500` | |
| - **Epochs:** `10`, `15`, `20` | |
| ## EcoBECS Project Context & Authorship | |
| - **Curator / Author:** Benjamín Esaú Contreras-Solis | |
| - **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 | |
| - **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 | |
| - **Reference Project:** Master's Thesis in Data Science and Information (INFOTEC, 2026) | |
| ## Intended Use & Limitations | |
| - **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*). | |
| - **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. | |
| ## Citation | |
| If you use these embeddings in your research or applications, please cite the **EcoBECS** work and collection: | |
| ```bibtex | |
| @misc{contreras2026ecobecs_embeddings, | |
| title = {EcoBECS -- Economic and Banking Extended Corpus \& Sources: Spanish fastText Word Embeddings}, | |
| author = {Contreras-Solis, Benjam{\'i}n Esa{\'u} and Miranda-Jim{\'e}nez, Sabino}, | |
| year = {2026}, | |
| howpublished = {Hugging Face (ESAUCS / EcoBECS Collection)}, | |
| note = {Maestr{\'i}a en Ciencia de Datos e Informaci{\'o}n, INFOTEC} | |
| } |