Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

hebrew-nlp-toolkit

БесплатноЗапускает вложенные скриптыНе проверен

Guide developers in using Hebrew NLP models and tools including DictaLM, DictaBERT, AlephBERT, and ivrit.ai. Use when user asks about Hebrew text processing…

skills-ilот skills-il★ 28 звёзд на GitHub

Об этом скилле

Hebrew NLP Toolkit

Instructions

Step 1: Identify the NLP Task

Task Recommended Model HuggingFace ID Size Notes
Text generation (large) DictaLM 3.0 24B Base dicta-il/DictaLM-3.0-24B-Base 24B Best Hebrew generation, built on Mistral-Small-3.1-24B. Apache-2.0
Text generation (small) DictaLM 3.0 Nemotron Instruct dicta-il/DictaLM-3.0-Nemotron-12B-Instruct 12B Instruction-tuned. NVIDIA Open Model License, not Apache
Reasoning / chain-of-thought DictaLM 3.0 24B Thinking dicta-il/DictaLM-3.0-24B-Thinking 24B Emits explicit thinking blocks before answering
Lightweight / edge DictaLM 3.0 1.7B Thinking (GGUF) dicta-il/DictaLM-3.0-1.7B-Thinking-GGUF 1.7B Runs on laptop / CPU via llama.cpp
Classification / fill-mask DictaBERT dicta-il/dictabert 184M Base model, fine-tune for classification
NER DictaBERT NER dicta-il/dictabert-ner 184M 13 entity types incl. PER, ORG, LOC, GPE, FAC, TIMEX, TTL
Sentiment DictaBERT Sentiment dicta-il/dictabert-sentiment 184M Works out of the box, returns Positive / Negative / Neutral style labels
Morphology / segmentation DictaBERT Joint dicta-il/dictabert-joint 184M Prefix segmentation, POS, lemma, dependency parse
Hebrew QA DictaBERT HeQ dicta-il/dictabert-heq 184M Extractive question answering
Embeddings (modern) NeoDictaBERT Bilingual Embed dicta-il/neodictabert-bilingual-embed ~363M Hebrew-English sentence embeddings, 768 dimensions
Embeddings (legacy) AlephBERT onlplab/alephbert-base BERT-base Older baseline for similarity
Speech-to-text ivrit.ai Whisper v3 ivrit-ai/whisper-large-v3 1.55B Trained on about 5,000 hours drawn from the ivrit.ai corpus (Knesset plenums, crowd transcriptions, recitals)
Speech-to-text (fast) ivrit.ai Whisper v3 Turbo CT2 ivrit-ai/whisper-large-v3-turbo-ct2 809M CTranslate2 build for faster-whisper

The full ivrit.ai Hebrew audio corpus is over 22,000 hours. Each checkpoint lists its own training data on its model card, and the numbers differ: whisper-large-v3 lists about 5,000 hours, while the turbo-ct2 build lists 295 hours of crowd transcriptions plus 93 hours of professionally transcribed speech from other sources.

Several of these models ship custom code and need trust_remote_code=True (Nemotron, dictabert-joint, dictabert-large-char-menaked, neodictabert-bilingual-embed). That flag runs Python from the model repo on your machine, so read the model card and pin a revision in production.

Step 2: Install, Load and Run

Sentiment (ready to use, no fine-tuning):

from transformers import pipeline

oracle = pipeline('sentiment-analysis', model='dicta-il/dictabert-sentiment')
print(oracle(['אני אוהב את השירות']))

NER (grouped entities):

from transformers import pipeline
from tokenizers.decoders import WordPiece

oracle = pipeline('ner', model='dicta-il/dictabert-ner', aggregation_strategy='simple')
# with aggregation_strategy='simple' the tokenizer needs a decoder, per the model card
oracle.tokenizer.backend_tokenizer.decoder = WordPiece()
print(oracle('דוד בן-גוריון נולד בפולין'))

Without the decoder line, grouped entities come back as broken ## word-piece fragments.

DictaBERT (base model, fill-mask):

from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("dicta-il/dictabert")
model = AutoModelForMaskedLM.from_pretrained("dicta-il/dictabert")

dicta-il/dictabert is a masked-LM base with NO classification head. Do not load it with AutoModelForSequenceClassification and run inference, that instantiates a randomly-initialised head and returns meaningless predictions. For classification, fine-tune it on labeled data first, or use a ready task-specific model such as dicta-il/dictabert-sentiment or dicta-il/dictabert-ner.

Morphology and prefix segmentation (dictabert-joint):

from transformers import AutoModel, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained('dicta-il/dictabert-joint')
model = AutoModel.from_pretrained('dicta-il/dictabert-joint', trust_remote_code=True)
model.eval()
print(model.predict(['ובבית הספר למדנו'], tokenizer, output_style='json'))

Sentence embeddings (NeoDictaBERT):

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("dicta-il/neodictabert-bilingual-embed", trust_remote_code=True)
query_embeddings = model.encode_query(["query: מתכון לעוגת שוקולד"])
document_embeddings = model.encode_document(["עוגת שוקולד פשוטה בעשר דקות"])

Keep the query: prefix on queries as the model card shows; dropping it degrades retrieval.

DictaLM 3.0 (generation, 12B instruct):

from transformers import pipeline

generator = pipeline('text-generation', model="dicta-il/DictaLM-3.0-Nemot
Полный SKILL.md на GitHub

Установить hebrew-nlp-toolkit в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(python:*)
Bash(pip:*)

Вложенные файлы

SKILL_HE.mdevidence.jsonmetadata.jsonoptimization-log.jsonreferences/model-comparison.mdscripts/preprocess_hebrew.py

FAQ

Что делает скилл hebrew-nlp-toolkit?

Guide developers in using Hebrew NLP models and tools including DictaLM, DictaBERT, AlephBERT, and ivrit.ai. Use when user asks about Hebrew text processing, Hebrew NLP, "ivrit", Hebrew tokenization, Hebrew NER, Hebrew sentiment analysis, Hebrew speech-to-text, or needs to process Hebrew language text programmatically. Covers model selection, preprocessing, and Hebrew-specific NLP challenges. Do NOT use for Arabic NLP (different tools) or general English NLP tasks.

Как установить скилл hebrew-nlp-toolkit?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл hebrew-nlp-toolkit запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить hebrew-nlp-toolkit с