Sentence Similarity
sentence-transformers
Safetensors
modernbert
feature-extraction
Generated from Trainer
dataset_size:305
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use Trelis/modernbert-embed-base-touch-rugby-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Trelis/modernbert-embed-base-touch-rugby-ft with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Trelis/modernbert-embed-base-touch-rugby-ft") sentences = [ "According to the text, when is an approach permitted?", "25.1.2\tAdjudicate on the Rules of the game;\n25.1.3\tImpose any sanction necessary to control the match;\n25.1.4\tAward Tries and record the progressive score;\n25.1.5\tMaintain a count of Touches during each Possession;\n25.1.6\tAward Penalties for Infringements against the Rules; and\n25.1.7\tReport to the relevant competition administration any Sin Bins, \nDismissals or injuries to any participant sustained during a Match.25.2\tOnly Team captains are permitted to seek clarification of a decision directly \nfrom the Referee.An approach may only be made during a break in play or at \nthe discretion of the Referee.", "11.2\tA player in Possession may not intentionally kick, pass, flick, knock, throw, \nhand-off or otherwise propel the ball in a Forward direction over an opposition \nplayer and regain Possession.Ruling = A Penalty will be awarded to the Defending Team at the Mark where the ball was \npropelled Forward.12 Ball Touched in Flight \n \n12.1\tIf a player from the Defending Team deliberately makes contact with the ball in \nflight and the ball goes to ground, the Attacking Team retains the ball and the \nTouch Count restarts as zero (0) Touch.12.2\tIf a player from the Defending Team deliberately makes contact with the ball \nin flight and the ball is retrieved by an attacking player, without touching the \nground, play continues and the next Touch is zero (0) Touch.", "Ruling = A Penalty to the Attacking Team at the point of the Infringement or on the seven (7) \nmetre line directly Forward of the Infringement.15.4\tWhen a Rollball occurs within Defending Team’s Seven Metre Zone or a Penalty \nTap within ten (10) metres of the Defending Team’s Try Line, all players from the \nDefending Team must have both feet on or behind their Try Line and no other \npart of the body in contact with the ground Forward of their Try Line.Ruling = A Penalty to the Attacking Team at the seven (7) metre line directly Forward of the \npoint of the Infringement.15.5\tAfter effecting the Touch, the defending player must retire the required seven \n(7) metres or to the Defending Try Line as indicated by the Referee without \ninterfering with the Attacking Team.Ruling = A Penalty to the Attacking Team ten (10) metres Forward of the Infringement or if \non the Defensive Try Line, on the seven (7) metre line." ] 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!