---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:2000
- loss:MultipleNegativesRankingLoss
base_model: sentence-transformers/paraphrase-multilingual-mpnet-base-v2
widget:
- source_sentence: What is a story about a student in Japan, caught between the Britannian
and Area 11 forces in the year 2010, who gains the power to command absolute obedience
and leads a rebellion against the Holy Empire of Britannia?
sentences:
- Makoto Konno is in her last year of high school, but is having a hard time deciding
what to do with her future. In between enduring the pressure of her teachers and
killing time with her best friends, Makoto's life suddenly changes when she accidentally
discovers that she is capable of literally leaping through time. Toki wo Kakeru
Shoujo follows Makoto as she plays around with her newfound power. However, she
soon learns the hard way that every choice has a consequence, and time is a lot
more complicated than it may seem.
- Wishing to be independent, 16-year-old Maika Sakuranomiya is desperate to nail
down a part-time job so that she can afford to study abroad. Unfortunately, her
applications are constantly rejected due to the menacing look she unintentionally
makes whenever she smiles, despite her otherwise cheerful disposition. After yet
another failed interview, she chances upon Café Stile, a coffee shop where the
servers interact with the customers while roleplaying distinctive characteristics.
The Italian store manager, Dino, becomes infatuated with Maika's cuteness at first
sight, and offers her a job as a waitress with a sadistic nature. Coupled with
her inherent clumsiness, she successfully manages to serve a pair of masochistic
customers in accordance with her new, ruthless persona. Alongside Kaho Hinata
as the tsundere and Mafuyu Hoshikawa as the younger sister, Maika decides to make
the most out of her unique quirk and cements her position in the cafe with merciless
cruelty!
- In the year 2010, the Holy Empire of Britannia is establishing itself as a dominant
military nation, starting with the conquest of Japan. Renamed to Area 11 after
its swift defeat, Japan has seen significant resistance against these tyrants
in an attempt to regain independence. Lelouch Lamperouge, a Britannian student,
unfortunately finds himself caught in a crossfire between the Britannian and the
Area 11 rebel armed forces. He is able to escape, however, thanks to the timely
appearance of a mysterious girl named C.C., who bestows upon him Geass, the "Power
of Kings." Realizing the vast potential of his newfound "power of absolute obedience,"
Lelouch embarks upon a perilous journey as the masked vigilante known as Zero,
leading a merciless onslaught against Britannia in order to get revenge once and
for all.
- source_sentence: '"Find an anime where a group of new demon slayers, including Tanjirou
Kamado, Zenitsu Agatsuma, and Inosuke Hashibira, team up with the Flame Pillar,
Kyoujurou Rengoku, to investigate mysterious disappearances on a train and face
off against powerful demonic forces to save the passengers."'
sentences:
- 'Fear, survival, instinct. Thrown into a foreign land with nothing but hazy memories
and the knowledge of their name, they can feel only these three emotions resonating
deep within their souls. A group of strangers is given no other choice than to
accept the only paying job in this game-like world—the role of a soldier in the
Reserve Army—and eliminate anything that threatens the peace in their new world,
Grimgar. When all of the stronger candidates join together, those left behind
must create a party together to survive: Manato, a charismatic leader and priest;
Haruhiro, a nervous thief; Yume, a cheerful hunter; Shihoru, a shy mage; Moguzo,
a kind warrior; and Ranta, a rowdy dark knight. Despite its resemblance to one,
this is no game—there are no redos or respawns; it is kill or be killed. It is
now up to this ragtag group of unlikely fighters to survive together in a world
where life and death are separated only by a fine line.'
- Genius thief Arsene Lupin III—along with the usual crew of Goemon Ishikawa XIII,
Fujiko Mine, and Daisuke Jigen—finds himself in modern-day France, where he encounters
both new and old adversaries, with Inspector Kouichi Zenigata still hot on his
trail. As they steal from darker, more sinister entities, they will also have
to find a way to deal with the newest technology in their escapades, as well as
face the ghosts of their pasts. However, this time, Lupin's choices begin to catch
up with him as his pursuers use every tool at their disposal to take him down
once and for all.
- 'After a string of mysterious disappearances begin to plague a train, the Demon
Slayer Corps'' multiple attempts to remedy the problem prove fruitless. To prevent
further casualties, the Flame Pillar, Kyoujurou Rengoku, takes it upon himself
to eliminate the threat. Accompanying him are some of the Corps'' most promising
new blood: Tanjirou Kamado, Zenitsu Agatsuma, and Inosuke Hashibira, who all hope
to witness the fiery feats of this model demon slayer firsthand. Unbeknownst to
them, the demonic forces responsible for the disappearances have already put their
sinister plan in motion. Under this demonic presence, the group must muster every
ounce of their willpower and draw their swords to save all two hundred passengers
onboard. As things begin to spiral out of control, Tanjirou''s resolve and commitment
to duty are put to the test.'
- source_sentence: '"What is a query for an anime about a team competing in intense
battles at their agency headquarters to secure a spot in an upcoming mission,
undergoing training with a new member and facing internal disputes?"'
sentences:
- At the Border Defense Agency's headquarters, the B-Rank Wars are underway as each
team fights intensely to secure a spot in the upcoming Away Mission. Though Osamu
Mikumo and the rest of Tamakoma-2 have pulled through thus far, the final rounds
will require them to push far beyond the limits of their current abilities. Taking
in a talented new member, the squad begins to train and develop new strategies,
but, amid these efforts, the team is shaken by a heated dispute—one that could
jeopardize their ticket to the Neighbor's dimension.
- Kyousuke Kasuga is no stranger to being the new kid at school. Despite only being
a third-year middle schooler, he has spent his entire childhood avoiding those
who discover his family's paranormal powers, and he has had to change schools
seven times as a result. Upon catching a beautiful girl's hat, he becomes optimistic
and hopes that he and his family have finally moved for the last time. When Kyousuke
gets to school, however, he learns a different story. The elegant girl he just
met turns out to be none other than Madoka Ayukawa—also known as "Madoka the Pick"—a
delinquent known to smoke, drink, and get into fights. Her best friend is first-year
Hikaru Hiyama, a childish and energetic girl who quickly falls in love with Kyousuke.
Enamored with both girls, Kyousuke tries to balance a delicate triangle of emotions,
all while dealing with the antics brought about by a family with paranormal powers.
- At Shirahamazaka High School, a special recital is held every year in which music
students are able to showcase their talents in front of professionals and other
prestigious guests. Third-year Konatsu Miyamoto desperately wants to sing in her
last high school recital, but because she screwed up the year before, the vice
principal has barred her from participating. That's when Konatsu comes up with
a new plan to get involved; instead of joining the official choir, she'll form
her own singing club with her friends! Unfortunately this proves to be harder
than she imagined. Her friend Wakana Sakai has given up on singing, for one, and
Konatsu needs more than just two members. With only a month left until the recital,
will Konatsu be able to find enough members for her club and actually be ready
to sing at one of the most important events of the school year and graduate without
regrets?
- source_sentence: What is a romantic comedy anime about a man who keeps getting into
lewd situations with women, including an alien princess and her twin sisters,
while also dealing with a weapon girl trying to kill him?
sentences:
- Love, Miki and Inori are on their way to a dance contest, but get lost on their
way to Minato Mirai. Still looking for their way, they are attacked by a monster.
When the three Fresh Precure girls start to fight it, other Precures show up to
support them. They all have to combine their powers to win against this mighty
enemy.
- Although learning different languages continues to be an interest for Shinobu
and her friends, the new school year brings unexpected difficulties. Not only
is there always something new and different to distract them from their studies,
but Alice and Yoko also are having trouble adjusting to being in a different class
from Shinobu and Aya. Meanwhile, Karen isn't getting along at all with her new
homeroom teacher, and it doesn't help that the teacher is having trouble figuring
out how to make herself seem friendlier to her students as well. Craziness may
ensue, but sometimes, all it takes is the right mutual experience to bring everyone
together. While some of those experiences may not be as well-thought-out as others
(like when Alice and Aya act like juvenile delinquents to seem more grown up),
the gang's new adventures are certain to warm everyone's heart as the fun and
friendships keep growing in HELLO!! KINMOZA!
- 'Rito Yuuki never gets a break—he''s always finding himself in lewd accidents
with girls around him. Although his heart still yearns for Haruna, his childhood
love, Rito can''t help but question his feelings for Lala, the alien princess
who appeared in front of him and declared she would marry him. But now, it''s
not just Lala he has to deal with: her younger twin sisters, Momo and Nana, have
also traveled to Earth, wanting to meet their older sister''s fiancé, and just
as luck would have it, they end up staying at Rito''s home. Meanwhile, amidst
the bustle of his new family members, Yami, the human weapon girl, begins her
pursuit for Rito. It''s not an easy life for Rito as he deals with uncertain love,
punishment for being a pervert, and a girl dead set on murdering him.'
- source_sentence: What is the story about a haunted school where the ghosts seek
revenge on the students who banished them years ago?
sentences:
- Years ago, all of the ghosts in a haunted schoolhouse were banished by a certain
student. Now, they're back—and they want revenge... Satsuki and Keiichirou Miyanoshita
are two siblings recovering from the tragic loss of their mother. After moving
to their mother's hometown, they learn that the local school they have transferred
to is an old building—one said to be haunted. Despite initially brushing it off
as a silly rumor, the two soon discover that ghosts are indeed real and that they're
after them! Gakkou no Kaidan is the creepy tale of the lives of these siblings
and their newfound friends as they try to survive the school's ghosts—with a little
help from their pet cat along the way.
- 'The villainous Dr. Hell has amassed an army of mechanical beasts in his secret
hideaway, the island of Bardos located in the Aegean Sea. He is capable of controlling
mechanized beasts with his cane, and instructs them to unleash devastating attacks.
However, Dr. Hell doesn''t do all the dirty work by himself; he has his loyal
henchman Baron Ashura to carry out his devilish plans. There are also those that
will see to it that evil does not prevail. Kouji Kabuto is the young and feisty
teenager with a score to settle: his goal is avenging the murder of his grandfather
by Dr. Hell. And he might just be able to pull it off, as he is the pilot of Mazinger
Z, a mighty giant robot made out of an indestructible metal known as Super-Alloy
Z. Mazinger Z boasts several powerful special attacks. By channeling Photonic
Energy through its eyes, and unleashing the Koushiryoku Beam, it can cause great
destruction. But things get really cool when Mazinger Z launches its Rocket Punch
attack. Dr. Hell and his minions might have just found their match!'
- The final hour of the popular virtual reality game Yggdrasil has come. However,
Momonga, a powerful wizard and master of the dark guild Ainz Ooal Gown, decides
to spend his last few moments in the game as the servers begin to shut down. To
his surprise, despite the clock having struck midnight, Momonga is still fully
conscious as his character and, moreover, the non-player characters appear to
have developed personalities of their own! Confronted with this abnormal situation,
Momonga commands his loyal servants to help him investigate and take control of
this new world, with the hopes of figuring out what has caused this development
and if there may be others in the same predicament.
pipeline_tag: sentence-similarity
library_name: sentence-transformers
---
# SentenceTransformer based on sentence-transformers/paraphrase-multilingual-mpnet-base-v2
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/paraphrase-multilingual-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-mpnet-base-v2). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
## Model Details
### Model Description
- **Model Type:** Sentence Transformer
- **Base model:** [sentence-transformers/paraphrase-multilingual-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-mpnet-base-v2)
- **Maximum Sequence Length:** 128 tokens
- **Output Dimensionality:** 768 dimensions
- **Similarity Function:** Cosine Similarity
### Model Sources
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
### Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
)
```
## Usage
### Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
```bash
pip install -U sentence-transformers
```
Then you can load this model and run inference.
```python
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("KiruruP/anime-recommendation-multilingual-mpnet-base-v2-v2")
# Run inference
sentences = [
'What is the story about a haunted school where the ghosts seek revenge on the students who banished them years ago?',
"Years ago, all of the ghosts in a haunted schoolhouse were banished by a certain student. Now, they're back—and they want revenge... Satsuki and Keiichirou Miyanoshita are two siblings recovering from the tragic loss of their mother. After moving to their mother's hometown, they learn that the local school they have transferred to is an old building—one said to be haunted. Despite initially brushing it off as a silly rumor, the two soon discover that ghosts are indeed real and that they're after them! Gakkou no Kaidan is the creepy tale of the lives of these siblings and their newfound friends as they try to survive the school's ghosts—with a little help from their pet cat along the way.",
'The final hour of the popular virtual reality game Yggdrasil has come. However, Momonga, a powerful wizard and master of the dark guild Ainz Ooal Gown, decides to spend his last few moments in the game as the servers begin to shut down. To his surprise, despite the clock having struck midnight, Momonga is still fully conscious as his character and, moreover, the non-player characters appear to have developed personalities of their own! Confronted with this abnormal situation, Momonga commands his loyal servants to help him investigate and take control of this new world, with the hopes of figuring out what has caused this development and if there may be others in the same predicament.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
```
## Training Details
### Training Dataset
#### Unnamed Dataset
* Size: 2,000 training samples
* Columns: sentence_0 and sentence_1
* Approximate statistics based on the first 1000 samples:
| | sentence_0 | sentence_1 |
|:--------|:-----------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|
| type | string | string |
| details |
What is the query for a story about a teenager seeking revenge on a villainous scientist with an army of mechanical beasts, located on an island in the Aegean Sea, who controls them with a cane, and has a loyal henchman? The teenager pilots a powerful robot made of indestructible metal to stop them. | The villainous Dr. Hell has amassed an army of mechanical beasts in his secret hideaway, the island of Bardos located in the Aegean Sea. He is capable of controlling mechanized beasts with his cane, and instructs them to unleash devastating attacks. However, Dr. Hell doesn't do all the dirty work by himself; he has his loyal henchman Baron Ashura to carry out his devilish plans. There are also those that will see to it that evil does not prevail. Kouji Kabuto is the young and feisty teenager with a score to settle: his goal is avenging the murder of his grandfather by Dr. Hell. And he might just be able to pull it off, as he is the pilot of Mazinger Z, a mighty giant robot made out of an indestructible metal known as Super-Alloy Z. Mazinger Z boasts several powerful special attacks. By channeling Photonic Energy through its eyes, and unleashing the Koushiryoku Beam, it can cause great destruction. But things get really cool when Mazinger Z launches its Rocket Punch attack. Dr. Hell and... |
| What is a manga about a struggling artist named Da Shu who finds companionship with a young man with cat ears? | Da Shu is a a manga creator who grew up in an orphanage, and whose works do not sell very well. Da Shu lives each lonely day in boredom, but one day he meets a young man named Miao who has cat ears, and his everyday life completely changes. Miao gets in trouble every day, but for the first time in his life, Da Shu's heart experiences "warmth." |
| What is a group of amnesiac strangers forced to become soldiers in a dangerous world called, where they must form a party to survive? | Fear, survival, instinct. Thrown into a foreign land with nothing but hazy memories and the knowledge of their name, they can feel only these three emotions resonating deep within their souls. A group of strangers is given no other choice than to accept the only paying job in this game-like world—the role of a soldier in the Reserve Army—and eliminate anything that threatens the peace in their new world, Grimgar. When all of the stronger candidates join together, those left behind must create a party together to survive: Manato, a charismatic leader and priest; Haruhiro, a nervous thief; Yume, a cheerful hunter; Shihoru, a shy mage; Moguzo, a kind warrior; and Ranta, a rowdy dark knight. Despite its resemblance to one, this is no game—there are no redos or respawns; it is kill or be killed. It is now up to this ragtag group of unlikely fighters to survive together in a world where life and death are separated only by a fine line. |
* Loss: [MultipleNegativesRankingLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
```json
{
"scale": 20.0,
"similarity_fct": "cos_sim"
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `per_device_train_batch_size`: 16
- `per_device_eval_batch_size`: 16
- `num_train_epochs`: 10
- `multi_dataset_batch_sampler`: round_robin
#### All Hyperparameters