Sentence Similarity
sentence-transformers
Safetensors
xlm-roberta
feature-extraction
Generated from Trainer
dataset_size:10352
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use rjnClarke/bgem3-shakespeare_st_3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use rjnClarke/bgem3-shakespeare_st_3 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("rjnClarke/bgem3-shakespeare_st_3") sentences = [ "Othello requests for Desdemona to be brought to the Sagittary to speak on his behalf in front of the Duke.", "Or with some dram conjured to this effect,\n He wrought upon her. DUKE. To vouch this is no proof, Without more certain and more overt test Than these thin habits and poor likelihoods Of modern seeming do prefer against him. FIRST SENATOR. But, Othello, speak. Did you by indirect and forced courses Subdue and poison this young maid's affections? Or came it by request, and such fair question As soul to soul affordeth? OTHELLO. I do beseech you, Send for the lady to the Sagittary, And let her speak of me before her father. If you do find me foul in her report, The trust, the office I do hold of you, Not only take away, but let your sentence Even fall upon my life. DUKE. Fetch Desdemona hither. OTHELLO. Ancient, conduct them; you best know the place. Exeunt Iago and Attendants. And till she come, as truly as to heaven I do confess the vices of my blood, So justly to your grave ears I'll present How I did thrive in this fair lady's love And she in mine. DUKE. Say it, Othello. OTHELLO. Her father loved me, oft invited me, Still question'd me the story of my life From year to year, the battles, sieges, fortunes, That I have pass'd. I ran it through, even from my boyish days To the very moment that he bade me tell it: Wherein I spake of most disastrous chances,\n Of moving accidents by flood and field,\n", "Enter Lodovico, Desdemona, and Attendants. LODOVICO. God save the worthy general!\n OTHELLO. With all my heart, sir. LODOVICO. The Duke and Senators of Venice greet you. Gives him a letter. OTHELLO. I kiss the instrument of their pleasures. Opens the letter, and reads. DESDEMONA. And what's the news, good cousin Lodovico? IAGO. I am very glad to see you, signior; Welcome to Cyprus. LODOVICO. I thank you. How does Lieutenant Cassio? IAGO. Lives, sir. DESDEMONA. Cousin, there's fall'n between him and my lord An unkind breech; but you shall make all well. OTHELLO. Are you sure of that? DESDEMONA. My lord? OTHELLO. [Reads.] \"This fail you not to do, as you will-\" LODOVICO. He did not call; he's busy in the paper. Is there division 'twixt my lord and Cassio? DESDEMONA. A most unhappy one. I would do much To atone them, for the love I bear to Cassio. OTHELLO. Fire and brimstone! DESDEMONA. My lord? OTHELLO. Are you wise? DESDEMONA. What, is he angry? LODOVICO. May be the letter moved him; For, as I think, they do command him home, Deputing Cassio in his government. DESDEMONA. By my troth, I am glad on't. OTHELLO. Indeed! DESDEMONA. My lord?\n OTHELLO. I am glad to see you mad.\n", "HORTENSIO. Would all the world but he had quite forsworn!\n For me, that I may surely keep mine oath, I will be married to a wealtlly widow Ere three days pass, which hath as long lov'd me As I have lov'd this proud disdainful haggard. And so farewell, Signior Lucentio. Kindness in women, not their beauteous looks, Shall win my love; and so I take my leave, In resolution as I swore before. Exit TRANIO. Mistress Bianca, bless you with such grace As 'longeth to a lover's blessed case! Nay, I have ta'en you napping, gentle love, And have forsworn you with Hortensio. BIANCA. Tranio, you jest; but have you both forsworn me? TRANIO. Mistress, we have. LUCENTIO. Then we are rid of Licio. TRANIO. I' faith, he'll have a lusty widow now, That shall be woo'd and wedded in a day. BIANCA. God give him joy! TRANIO. Ay, and he'll tame her. BIANCA. He says so, Tranio. TRANIO. Faith, he is gone unto the taming-school. BIANCA. The taming-school! What, is there such a place? TRANIO. Ay, mistress; and Petruchio is the master, That teacheth tricks eleven and twenty long, To tame a shrew and charm her chattering tongue.\n Enter BIONDELLO BIONDELLO. O master, master, have watch'd so long\n That I am dog-weary; but at last I spied An ancient angel coming down the hill Will serve the turn. TRANIO. What is he, Biondello? BIONDELLO. Master, a mercatante or a pedant,\n I know not what; but formal in apparel,\n In gait and countenance surely like a father. LUCENTIO. And what of him, Tranio? TRANIO. If he be credulous and trust my tale, I'll make him glad to seem Vincentio, And give assurance to Baptista Minola As if he were the right Vincentio. Take in your love, and then let me alone. Exeunt LUCENTIO and BIANCA\n Enter a PEDANT PEDANT. God save you, sir!\n" ] 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!