Zirneshan
Zirneshane model is designed to predict whether to add kasre (ِ) at the end of each word in a sentence in Persian language.
This is a token classification problem and the focus is only on word-end position.
Usage
Install according to the repo Zirneshane
pip3 install git+ssh://git@github.com/SadeghKrmi/zirneshane
load model and predict
from src.model import HybridKasreModel
model = HybridKasreModel.load("./models/zirneshan-word-char-embedding-classifier-v1.0.pt", device="cpu")
model.eval()
result = model.predict("بعد از دیدن این صحنههای دلخراش، با عجله فراوان، همه شهر، مجبور به ترک مجلس شدند.", device="cpu")
print(result)
Model tree for SadeghK/zirneshane
Base model
google/embeddinggemma-300m