Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:1382
loss:CoSENTLoss
text-embeddings-inference
Instructions to use Trelis/all-MiniLM-L12-v2-ft-pairs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Trelis/all-MiniLM-L12-v2-ft-pairs with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Trelis/all-MiniLM-L12-v2-ft-pairs") sentences = [ "What is the definition of 'Advantage' in Touch Rugby International Rules?", "1\twhen a Change of Possession takes place due to a player in Possession \nmaking contact with the Sideline or any ground outside the Field of Play, \nprior to a Touch being made; or\n13.6.2\twhen the ball not in Possession of a player makes contact with the \nSideline or any ground outside the Field of Play.\n13.7\tA player may not perform a Tap in replacement of a Rollball.\nRuling = The offending Team must return to the Mark and perform the Rollball.\n13.8\tAn attacking player, other than the player performing the Rollball, may receive \nthe ball at the Rollball and shall do so without delay. That player is referred to as \nthe Half.\n13.9\tThe Half may control the ball with a foot prior to picking up the ball. \n13.10\tA player ceases to be the Half once the ball is passed to another player.\n13.11\tDefending players are not to interfere with the performance of the Rollball or the \nHalf. \nRuling = A Penalty to the Attacking Team at a point ten (10) metres directly Forward of the \nInfringement.\n13.12\tPlayers of the Defending Team must not move Forward of the Onside position \nuntil the Half has made contact with the ball, unless directed to do so by the \nReferee or in accordance with 13.12.1.\n13.12.1\tWhen the Half is not within one (1) metre of the Rollball, Onside players \nof the Defending Team may move Forward as soon as the player \nperforming the Rollball releases the ball. If the Half is not in position and \na defending player moves Forward and makes contact with the ball, a \nChange of Possession results.\n13.13\tIf in the act of performing the Rollball, the Attacking player makes contact with \nthe Sideline or any ground outside the Field of Play a Change of Possession will \noccur with the Rollball to be taken seven (7) metres in field.\n13.14\tAfter a Touch is made between the Dead Ball Line and the seven (7) metre line, \nan Attacking Team is permitted to Rollball on the seven (7) metre line at a point \ndirectly in line with where the Touch was made.\nFIT Playing Rules - 5th Edition\n12\nCOPYRIGHT © Touch Football Australia", " distance beyond the Defending Try Line.\nRuling = A Penalty to the Attacking Team at the point of the Infringement or on the seven (7) \nmetre line directly Forward of the Infringement.\n15.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.\nRuling = A Penalty to the Attacking Team at the seven (7) metre line directly Forward of the \npoint of the Infringement.\n15.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.\nRuling = 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.\nFIT Playing Rules - 5th Edition\nCOPYRIGHT © Touch Football Australia 2020\n13\n16 Obstruction \n16.1\tA player in Possession must not run or otherwise move behind other attacking \nplayers or the Referee in an attempt to avoid an Imminent Touch.\nRuling = A Penalty to the non-offending Team at the point of the Infringement. \n16.2\tThe player in Possession is not to hold or otherwise impede a defending player \nin any way.\nRuling = A Penalty to the non-offending Team at the point of the Infringement. \n16.3\tAn attacking player in support of the player in Possession may move as \nnecessary to achieve a supporting position but must not grab, hold, push or \notherwise deliberately interfere with a defending player attempting to make a \nTouch\nRuling = A Penalty to the non-offending Team at the point of the Infringement or on the \nseven (7) metre line if the Infringement occurs in the In-Goal Area. \n16.4\tPlayers in the Defending Team may not obstruct or interfere with an attacking \nplayer.\nRuling = A Penalty to the non-offending Team at the point of the In", " without delay. While in a position at the end of the Field of Play, \nthe Team coach(s) or Team official must remain no closer than five (5) metres \nfrom the Dead Ball Line and must not coach or communicate (verbal or non-\nverbal) with either Team or the Referees.\n7 Commencement and Recommencement of Play \n7.1\tTeam captains are to toss a coin in the presence of the Referee(s) with the \nwinning captain’s Team having the choice of the direction the Team wishes \nto run in the first half; the choice of Interchange Areas for the duration of the \nmatch, including any extra time; and the choice of which team will commence \nthe match in Possession.\n7.2\tA player of the Attacking Team is to commence the match with a Tap at the \ncentre of the Halfway Line following the indication to commence play from the \nReferee.\n7.3\tFor the recommencement of play following a Half Time break, Teams shall \nchange directions and the Team not commencing the match with Possession is \nto re-start the match with a Tap.\n7.4\tFor the recommencement of play following the scoring of a Try, the Team \nagainst which the Try was conceded will recommence play with a Tap.\n7.5\tA Tap may not be taken until all attacking Players are in an Onside position.\nRuling = The Player will be directed to return to the Mark and to take the Tap again.\nFIT Playing Rules - 5th Edition\nCOPYRIGHT © Touch Football Australia 2020\n7\n7.6\tA Tap may not be taken until at least four (4) defending players are in an Onside \nposition or unless directed to so by the Referee. Where the number of players \non the field from the Defending Team falls below four (4), all players must be in \nan Onside position for a Tap to be taken unless directed to do so by the Referee.\nRuling = The Player will be directed to return to the Mark and to take the Tap again.\n7.7\tThe Tap to commence or recommence play must be performed without delay.\nRuling = A Penalty to the non-offending team at the centre of the Halfway line.\n8 Match Duration \n \n8.1\tA match is 40 minutes in duration, consisting of two (2) x 20 minute" ] 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!