Downloads · 30 days
0
ArieLLL123/otzaria-embeddings
otzaria-embeddings is a feature extraction model from ArieLLL123. Use it when you need embeddings to search or compare text. It is set up for pytorch. The card lists the license as gpl-3.0.
הריפו מכיל וקטורי־מילים (embeddings) שאומנו על קורפוס גדול של טקסטים תורניים בעברית ובארמית (תנ״ך, משנה, תלמוד בבלי/ירושלמי ועוד), לאחר ניקוי וייצוא מה־DB.
Downloads · 30 days
0
Access
Public
Updated Aug 9, 2026
Repo size
1.8 GB
Likes
1
Public
Click a slice to open those files.
.pt1.2 GB · 85%
From the Hugging Face model README
הריפו מכיל וקטורי־מילים (embeddings) שאומנו על קורפוס גדול של טקסטים תורניים בעברית ובארמית (תנ״ך, משנה, תלמוד בבלי/ירושלמי ועוד), לאחר ניקוי וייצוא מה־DB.
he), ארמית יהודית (arc)vocab.json — מיפוי token→id + תדירויותembeddings_last.npy — מטריצת אמבדינגים [vocab_size, dim]ckpt_last.pt — צ’קפוינט אימון אחרון (PyTorch state_dict)ckpt_mid.pt — גיבוי צ’קפוינט ישן יותר (אם קיים)import json, numpy as np
with open("vocab.json", "r", encoding="utf-8") as f:
meta = json.load(f)
vocab = meta["vocab"]
emb = np.load("embeddings_last.npy") # [V, D]
embn = emb / (np.linalg.norm(emb, axis=1, keepdims=True) + 1e-9)
id2word = [None] * len(vocab)
for w,i in vocab.items():
id2word[i] = w
def nearest(word, k=10):
i = vocab.get(word)
if i is None:
return None
sims = embn @ embn[i]
top = np.argpartition(-sims, range(k+1))[:k+1]
top = top[np.argsort(-sims[top])]
return [(id2word[j], float(sims[j])) for j in top if j != i][:k]
print(nearest("שבת", 10))
המודל לומד דמיון הקשרי (מילים שמופיעות בהקשרים דומים), לא בהכרח “נרדפות מילונית”.
ערבוב עברית/ארמית וצורות נטייה גורמים לכך שלפעמים השכנים הם וריאציות צורניות (למשל: שבת/בשבת/השבת וכו’).
This repository contains word embeddings trained on a large Hebrew/Aramaic Jewish-text corpus (including Tanakh, Mishnah, Bavli/Yerushalmi, and related sources), exported from an SQLite database.
he), Jewish Aramaic (arc)vocab.json — token → id mapping + token frequenciesembeddings_last.npy (or embeddings.npy) — embedding matrix [vocab_size, dim]ckpt_last.pt — latest training checkpoint (PyTorch state_dict)ckpt_mid.pt — backup checkpoint (older)import json, numpy as np
with open("vocab.json", "r", encoding="utf-8") as f:
meta = json.load(f)
vocab = meta["vocab"]
emb = np.load("embeddings_last.npy") # shape: [V, D]
embn = emb / (np.linalg.norm(emb, axis=1, keepdims=True) + 1e-9)
id2word = [None] * len(vocab)
for w,i in vocab.items():
id2word[i] = w
def nearest(word, k=10):
i = vocab.get(word)
if i is None:
return None
sims = embn @ embn[i]
top = np.argpartition(-sims, range(k+1))[:k+1]
top = top[np.argsort(-sims[top])]
return [(id2word[j], float(sims[j])) for j in top if j != i][:k]
```python
print(nearest("שבת", 10))
import torch
ckpt = torch.load("ckpt_last.pt", map_location="cpu")
# ckpt contains: in/out embedding matrices + step
line.content)GPL-3.0