Downloads · 30 days
0
ancatmara/historical-irish-ft-vectors
historical-irish-ft-vectors is a feature extraction model from ancatmara. Use it when you need embeddings to search or compare text. It is set up for gensim. The card lists the license as cc-by-nc-sa-4.0.
Historical Irish FastText models were trained on Old, Middle, Early Modern, Classical Modern and pre-reform Modern Irish texts from St. Gall Glosses, Würzburg Glosses, CELT and the book subcorpus Historical Irish Corp…
Downloads · 30 days
0
Access
Public
Updated Aug 15, 2024
Repo size
757 MB
Likes
0
Public
Click a slice to open those files.
.txt361 MB · 100%
From the Hugging Face model README
Historical Irish FastText models were trained on Old, Middle, Early Modern, Classical Modern and pre-reform Modern Irish texts from St. Gall Glosses, Würzburg Glosses, CELT and the book subcorpus Historical Irish Corpus. The training data spans ca. 550 — 1926 and covers a wide variety of genres, such as bardic poetry, native Irish stories, translations and adaptations of continental epic and romance, annals, genealogies, grammatical and medical tracts, diaries, and religious writing. Due to code-switching in some texts, the models have some Latin in the vocabulary.
There are 3 models in this familily:
historical_irish_cased_ft_100_5_2.txthistorical_irish_lower_ft_100_5_2.txthistorical_irish_lower_demutated_ft_100_5_2.txtAll models are trained with the same hyperparameters (emb_size=100, window=5, min_count=2, n_epochs=100) and saved as KeyedVectors (see Gensim Documentation).
from gensim.models import KeyedVectors
from huggingface_hub import hf_hub_download
model_path = hf_hub_download(repo_id="ancatmara/historical-irish-ft-vectors", filename="historical_irish_lower_demutated_ft_100_5_2.txt")
model = KeyedVectors.load_word2vec_format(model_path, binary=False)
model.similar_by_word('coíca')
Out:
>>> [('coícat', 0.6620370149612427),
('coícait', 0.6584151983261108),
('coíctu', 0.550497829914093),
('trícha', 0.537602424621582),
('cóeca', 0.531631350517273),
('cóecta', 0.5148215889930725),
('cóecait', 0.5108019113540649),
('tríchad', 0.5059043765068054),
('tríchaid', 0.5049244165420532),
('cóecat', 0.5042815804481506)]