Downloads · 30 days
12
0% of all-time downloads
Pongsasit/mod-th-cross-encoder-minilm
mod-th-cross-encoder-minilm is a text ranking model from Pongsasit. Use it for the text ranking task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
Downloads · 30 days
12
0% of all-time downloads
All-time downloads
9.7K
Public
Parameters
33.4M
133 MB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors133 MB · 99%
From the Hugging Face model README
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
Use the code below to get started with the model.
from sentence_transformers.cross_encoder import CrossEncoder
model = CrossEncoder("Pongsasit/mod-th-cross-encoder-minilm")
th_question = "การใช้สีส่งผลต่ออารมณ์ของภาพวาดอย่างไร"
th_answer1 = "เมื่อศิลปินเลือกเฉดสีที่แตกต่างกัน มันก็เหมือนกับการเลือกความรู้สึกที่แตกต่างกันให้กับภาพของพวกเขา!"
th_answer2 = "ทำไมสิ่งเล็กๆ น้อยๆ บางครั้งจึงดูเหมือนอยู่สองแห่งในเวลาเดียวกัน? เหมือนพยายามจับผีเล่นซ่อนหา!"
en_question = "How does the use of color contribute to the emotional impact of a painting?"
en_answer1 = "When an artist picks different shades, it's like picking different feelings for their picture!"
en_answer2 = "Why do really tiny things sometimes seem to be in two places at the same time? It's like trying to catch a sneaky ghost playing hide and seek!"
th_scores = model.predict([[th_question, th_answer1], [th_question, th_answer2]])
en_scores = model.predict([[en_question, en_answer1], [en_question, en_answer2]])