Sentence Similarity
sentence-transformers
Safetensors
neobert
feature-extraction
Generated from Trainer
dataset_size:465
loss:MultipleNegativesRankingLoss
custom_code
Instructions to use AhmadAfles/NeoAraBERT-STS-Genre with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use AhmadAfles/NeoAraBERT-STS-Genre with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("AhmadAfles/NeoAraBERT-STS-Genre", trust_remote_code=True) sentences = [ "قولنا في تعليق إيه أكتر كلمة عامية مشهورة في محافظتك أو بلدك والناس من بره مش بتفهمها بسهولة، خلينا نتعرف على لهجاتنا!", "يَعْمَلُ التَّسْوِيقُ بِالرِّفِرَال (Referral Marketing) عَلَى تَحْوِيلِ عُمَلَائِكَ الحَالِيِّينَ إِلَى مُسَوِّقِينَ لَكَ، عَنْ طَرِيقِ مَنْحِهِمْ حَوَافِذَ لِجَلْبِ أَصْدِقَائِهِمْ.", "دخلت الأوضة لقيت كل الصور اللي متعلقة على الحيطة مقلوبة وشها للناحية التانية، ومفيش أي حد دخل البيت غيري.. أنا متأكد من ده.", "شَارِكْ هَذَا المَنْشُورَ مَعَ ثَلَاثَةٍ مِنْ زُمَلَائِكَ فِي العَمَلِ، وَادْعُهُمْ لِتَحَدِّي الإِنْتَاجِيَّةِ لِهَذَا الأُسْبُوعِ دُونَ تَأْجِيلٍ." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!