Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
from sentence_transformers import CrossEncoder
# Download from the 🤗 Hub
model = CrossEncoder("tomaarsen/reranker-ModernBERT-large-gooaq-bce")
# Get scores for pairs of texts
pairs = [
['what are the characteristics and elements of poetry?', 'The elements of poetry include meter, rhyme, form, sound, and rhythm (timing). Different poets use these elements in many different ways.'],
['what are the characteristics and elements of poetry?', "What's the first rule of writing poetry? That there are no rules — it's all up to you! Of course there are different poetic forms and devices, and free verse poems are one of the many poetic styles; they have no structure when it comes to format or even rhyming."],
['what are the characteristics and elements of poetry?', "['Blank verse. Blank verse is poetry written with a precise meter—almost always iambic pentameter—that does not rhyme. ... ', 'Rhymed poetry. In contrast to blank verse, rhymed poems rhyme by definition, although their scheme varies. ... ', 'Free verse. ... ', 'Epics. ... ', 'Narrative poetry. ... ', 'Haiku. ... ', 'Pastoral poetry. ... ', 'Sonnet.']"],
['what are the characteristics and elements of poetry?', 'The main component of poetry is its meter (the regular pattern of strong and weak stress). When a poem has a recognizable but varying pattern of stressed and unstressed syllables, the poetry is written in verse. ... There are many possible patterns of verse, and the basic pattern of each unit is called a foot.'],
['what are the characteristics and elements of poetry?', "Some poetry may not make sense to you. But that's because poets don't write to be understood by others. They write because they must. The feelings and emotions that reside within them need to be expressed."],
]
scores = model.predict(pairs)
print(scores.shape)
# (5,)# Or rank different texts based on similarity to a single text
ranks = model.rank(
'what are the characteristics and elements of poetry?',
[
'The elements of poetry include meter, rhyme, form, sound, and rhythm (timing). Different poets use these elements in many different ways.',
"What's the first rule of writing poetry? That there are no rules — it's all up to you! Of course there are different poetic forms and devices, and free verse poems are one of the many poetic styles; they have no structure when it comes to format or even rhyming.",
"['Blank verse. Blank verse is poetry written with a precise meter—almost always iambic pentameter—that does not rhyme. ... ', 'Rhymed poetry. In contrast to blank verse, rhymed poems rhyme by definition, although their scheme varies. ... ', 'Free verse. ... ', 'Epics. ... ', 'Narrative poetry. ... ', 'Haiku. ... ', 'Pastoral poetry. ... ', 'Sonnet.']",
'The main component of poetry is its meter (the regular pattern of strong and weak stress). When a poem has a recognizable but varying pattern of stressed and unstressed syllables, the poetry is written in verse. ... There are many possible patterns of verse, and the basic pattern of each unit is called a foot.',
"Some poetry may not make sense to you. But that's because poets don't write to be understood by others. They write because they must. The feelings and emotions that reside within them need to be expressed.",
]
)
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
Approximate statistics based on the first 1000 samples:
question
answer
label
type
string
string
int
details
min: 22 characters
mean: 43.99 characters
max: 93 characters
min: 51 characters
mean: 252.75 characters
max: 378 characters
0: ~82.30%
1: ~17.70%
Samples:
question
answer
label
what are the characteristics and elements of poetry?
The elements of poetry include meter, rhyme, form, sound, and rhythm (timing). Different poets use these elements in many different ways.
1
what are the characteristics and elements of poetry?
What's the first rule of writing poetry? That there are no rules — it's all up to you! Of course there are different poetic forms and devices, and free verse poems are one of the many poetic styles; they have no structure when it comes to format or even rhyming.
0
what are the characteristics and elements of poetry?
['Blank verse. Blank verse is poetry written with a precise meter—almost always iambic pentameter—that does not rhyme. ... ', 'Rhymed poetry. In contrast to blank verse, rhymed poems rhyme by definition, although their scheme varies. ... ', 'Free verse. ... ', 'Epics. ... ', 'Narrative poetry. ... ', 'Haiku. ... ', 'Pastoral poetry. ... ', 'Sonnet.']
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
Runs of tomaarsen reranker-ModernBERT-large-gooaq-bce on huggingface.co
3.2K
Total runs
-237
24-hour runs
-395
3-day runs
-304
7-day runs
1.7K
30-day runs
More Information About reranker-ModernBERT-large-gooaq-bce huggingface.co Model
More reranker-ModernBERT-large-gooaq-bce license Visit here:
reranker-ModernBERT-large-gooaq-bce huggingface.co is an AI model on huggingface.co that provides reranker-ModernBERT-large-gooaq-bce's model effect (), which can be used instantly with this tomaarsen reranker-ModernBERT-large-gooaq-bce model. huggingface.co supports a free trial of the reranker-ModernBERT-large-gooaq-bce model, and also provides paid use of the reranker-ModernBERT-large-gooaq-bce. Support call reranker-ModernBERT-large-gooaq-bce model through api, including Node.js, Python, http.
reranker-ModernBERT-large-gooaq-bce huggingface.co is an online trial and call api platform, which integrates reranker-ModernBERT-large-gooaq-bce's modeling effects, including api services, and provides a free online trial of reranker-ModernBERT-large-gooaq-bce, you can try reranker-ModernBERT-large-gooaq-bce online for free by clicking the link below.
tomaarsen reranker-ModernBERT-large-gooaq-bce online free url in huggingface.co:
reranker-ModernBERT-large-gooaq-bce is an open source model from GitHub that offers a free installation service, and any user can find reranker-ModernBERT-large-gooaq-bce on GitHub to install. At the same time, huggingface.co provides the effect of reranker-ModernBERT-large-gooaq-bce install, users can directly use reranker-ModernBERT-large-gooaq-bce installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
reranker-ModernBERT-large-gooaq-bce install url in huggingface.co: