Sentence Similarity
sentence-transformers
Safetensors
gemma3_text
feature-extraction
dense
Generated from Trainer
dataset_size:16276
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use ahmedHamdi/IR-fr-en-gemma with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ahmedHamdi/IR-fr-en-gemma with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ahmedHamdi/IR-fr-en-gemma") sentences = [ "In late Victorian England, young Jude Fawley (Christopher Eccleston) dreams of attending university. Following an unhappy first marriage to a country girl, Arabella (Rachel Griffiths), who abruptly leaves him with a note, he becomes a bricklayer and moves to Christminster to pursue his dream. There he meets his beautiful cousin, Sue Bridehead (Kate Winslet), who is as intelligent and unconventional as he is. They quickly fall in love, but will have to face the great difficulties and scandal caused by their extramarital affair…", "In 63 BC, Pompey conquered Jerusalem and the city was sacked. He entered the Temple to seize the treasure of Solomon and massacred the priests there. He discovered that the treasure is only a collection of scrolls of the Torah. These Pompey held over a fire until an old priest reached for them imploringly. Pompey relented and handed them to the old man and left to carry out massacres of enemy villages and towns. Many years later, a series of rebellions break out against the authority of Rome, so the Romans crucify many of the leaders and place Herod the Great on Judea's throne. A carpenter named Joseph and his wife Mary, who is about to give birth, arrive in Bethlehem for the census. Not having found accommodation for the night, they take refuge in a stable, where the child, Jesus, is born. The shepherds, who have followed the Magi from the East, gather to worship him. However, Herod, informed of the birth of a child-king, orders the centurion Lucius to take his men to Bethlehem and kill all the newborn male children. Mary and Joseph flee to Egypt with the child. The Massacre of the Innocents occurs, Herod dies, killed in his death throes by his son Herod Antipas, who then takes power. In Nazareth, Jesus, who is now twelve years old, is working with Joseph when soldiers arrive under the command of Lucius, who knows now that Jesus escaped the massacre of the infants. But Lucius does nothing and only asks that Mary and Joseph register their son's birth before the year's end. Years pass and Jewish rebels led by Barabbas and Judas Iscariot prepare to attack a caravan carrying the next governor of Judea, Pontius Pilate and his wife Claudia. The ambush fails, partly due to the diligence of Lucius, and Barabbas and Judas flee for their lives. Pilate and Herod Antipas meet on the banks of the River Jordan, where John the Baptist preaches to the crowds. Jesus arrives here, now 30 years of age. He is baptized by John, who recognizes that he is the Messiah. Jesus goes into the desert, where he is tempted by Satan. After forty days, Jesus travels to Galilee, where he recruits his Apostles. In Jerusalem, Herod Antipas arrests John the Baptist, who is visited by Jesus in prison. Judas leaves the rebel Barabbas and joins the Apostles. Jesus begins to preach and gather crowds, among which are Claudia, Pilate's wife, and Lucius. Herod reluctantly beheads John on a whim of his stepdaughter, Salome, who despises him. Herod, Pilate and the High Priest Caiaphas are terrorized by the works and miracles of Jesus. Barabbas plots a revolt in Jerusalem during Passover, during which time Jesus enters the holy city in triumph and goes to the Temple to preach. The rebels storm the Antonia Fortress, but the legions of Pilate, having learned of the plot, ambush and crush the revolt, massacring the rebels, leaving Barabbas as the sole survivor who ends up getting arrested. Jesus meets the disciples on the evening of Thursday, having supper one last time with them and afterwards goes to pray at Gethsemane. In the meantime, Judas wants Jesus to free Judea from the Romans, and, to force his hand, Judas delivers him to the Jewish authorities. Jesus is brought before Caiaphas and then brought before Pilate. Pilate starts the trial, but sensing that the issue is one of Jewish sensibilities, sends him to Herod Antipas, who, in turn, sends him back. Pilate is infuriated by Antipas' returning of Jesus and commands his soldiers to scourge Jesus. The people demand the release of Barabbas, and Pilate bows to their pressure and sentences Jesus to be crucified. Jesus, wearing a crown of thorns on his head, carries his cross to Golgotha where he is crucified with two thieves, one of them being the penitent thief Dismas and the other, the Impenitent thief, Gestas. Desperate because he has betrayed Jesus to his death, Judas hangs himself and his body is found by Barabbas. Jesus dies in front of his mother, the apostle John, a few soldiers, Claudia (Pilate's wife), and Lucius (who utters the fateful words: He is truly the Christ). His body is taken down from the cross and is carried to a rock tomb. Two days later, Mary Magdalene finds the tomb empty, and encounters the Risen Jesus.", "In the Victorian period, Jude Fawley is a bright young lower-class man who dreams of a university education. Circumstances conspire against him, and he is forced into a job as a stonemason and an unhappy marriage to a country girl, Arabella. He remains true to his dream and, months later, after his wife's sudden departure, he heads for the city. He thinks education is available for any man who is willing to work hard. However, he is rejected by the university based primarily on his lower-class status. During this period, he encounters his cousin, Sue Bridehead, who is beautiful and intelligent, and shares his disdain for convention. Whilst Jude is enraptured by Sue, and vice versa, she marries Jude's former school teacher, Phillotson, after Jude tells her he is married to Arabella. The marriage of Sue and Phillotson is not a success, as she refuses to give herself sexually or romantically to her husband. She leaves Phillotson to join Jude in what turns out to be a rough life, moving from place to place as Jude picks up occasional work as a stonemason. Jude learns that Arabella bore a son, whom she named Jude (Juey) soon after she left Jude. The boy comes to live with his father Jude, and Sue. Sue gives birth to two children. Agnostic and independent, she refuses to legalise their arrangement by marriage. Sue and Jude are forbidden a permanent rental lodging because their living arrangement without marriage is considered scandalous. Sue tells Juey that the family cannot stay long at their present lodging because there are too many of them. The next day Sue and Jude return to their lodging to find that Juey has killed his half-siblings and committed suicide, hanging himself. His suicide note says the reason: Becos we were to menny. Each of the couple falls into a deep depression after the deaths of their children. Turning to the religion she previously rejected, Sue comes to believe that God has judged and punished the couple for not having married. She decides to return to Phillotson, although she finds him sexually repugnant, as he is her true husband in the eyes of God. A year after the death of their children, Jude and Sue happen to meet when separately visiting the tombstones of their children. They both look worse for wear. Jude demands that Sue tell him whether she still loves him, to which she replies, You've always known. After a passionate kiss, she walks away from Jude to return to Phillotson. As Sue walks away, Jude shouts to her, We are man and wife, if ever two people were on this earth!", "Wealthy socialite Lois Frazer, divorcing her fortune-hunter husband, Howard, finds a gun he had bought. She kills him with it in front of the new man in her life, Lt. Ed Cullen, a homicide detective with the San Francisco police. Cullen takes control, discarding the weapon and moving the body. Cullen ends up assigned to investigate the case, assisted by kid brother Andy, who is new to the homicide division and delays his honeymoon to keep working on his first big case. The gun is found and used in another killing by a young punk, Nito Capa, and Cullen—with few options to save himself and his paramour Lois—tries to pin both crimes on him. However, Andy keeps connecting Ed to the first murder, catching him in a number of evasions and lies. In desperation, Ed knocks Andy out, ties and gags him, and calls Lois and tells her they need to flee. Police roadblocks seal off the city, but Andy has a hunch where Ed took Lois to hide, at the abandoned ruins of Fort Point under the Golden Gate Bridge where Andy and his brother played together when they were children. Their escape plan almost works, but they are ultimately arrested. Outside the courtroom, Ed sees Lois affectionately offering to do anything for her lawyer if he can keep her from being convicted. Defeated, Ed offers her a cigarette and they share a final goodbye gaze." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle