You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from transformers import AutoTokenizer, AutoModel # دانلود مدل و توکنایزر model_name = "HooshvareLab/bert-fa-base-uncased" tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModel.from_pretrained(model_name) # نمونهای از متن text = "ما در هوشواره معتقدیم با انتقال صحیح دانش و آگاهی، همه افراد میتوانند از ابزارهای هوشمند استفاده کنند. شعار ما هوش مصنوعی برای همه است." # توکنایز کردن متن inputs = tokenizer(text, return_tensors="pt") # استخراج ویژگیها از مدل outputs = model(**inputs)
#33
Open
alirezaaddeli opened this issue
Jun 10, 2024
· 0 comments
No description provided.
The text was updated successfully, but these errors were encountered: