NLP
Collection
NLP models, datasets, etc.
•
23 items
•
Updated
•
3
The original ParsGPT2 model ported to Hezar for compatibility.
pip install hezar
from hezar.models import Model
model = Model.load("hezarai/gpt2-base-fa")
text = " در یک اتفاق شگفت انگیز، پژوهشگران"
outputs = model.predict(text)
print(outputs)