hezarai / hezar

The all-in-one AI library for Persian, supporting a wide variety of tasks and modalities!
https://hezarai.github.io/hezar/
Apache License 2.0
821 stars 45 forks source link

there is no guide to use of this library #119

Closed muhammadCodeSh closed 8 months ago

muhammadCodeSh commented 8 months ago

I am a beginner and just want to give a text to your library and get a summary of that text how can I do it, please write an example,

arxyzan commented 8 months ago

Hello @muhammadCodeSh . Actually we're working on a text summarizer model right now and we'll publish it soon. We'll also include an example in the README.md file. But the general structure of such example is as below:

from hezar.models import Model

model = Model.load("path/to/summarizer-model")
summary = model.predict("یک متن طولانی")
print(summary)
muhammadCodeSh commented 8 months ago

thanks for answer ,

On Mon, Nov 13, 2023 at 12:15 AM Aryan Shekarlaban @.***> wrote:

Hello @muhammadCodeSh https://github.com/muhammadCodeSh . Actually we're working on a text summarizer model right now and we'll publish it soon. We'll also include an example in the README.md file. But the general structure of such example is as below:

from hezar.models import Model model = Model.load("path/to/summarizer-model")summary = model.predict("یک متن طولانی")print(summary)

— Reply to this email directly, view it on GitHub https://github.com/hezarai/hezar/issues/119#issuecomment-1807234481, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUTG2LYLJX6MQMQEXCNWEVLYEEYQJAVCNFSM6AAAAAA7IH35COVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXGIZTINBYGE . You are receiving this because you were mentioned.Message ID: @.***>