This is a
Cross Encoder
model finetuned from
prajjwal1/bert-tiny
using the
sentence-transformers
library. It computes scores for pairs of texts, which can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
from sentence_transformers import CrossEncoder
# Download from the 🤗 Hub
model = CrossEncoder("cross-encoder-testing/reranker-bert-tiny-gooaq-bce")
# Get scores for pairs of texts
pairs = [
['are javascript developers in demand?', "JavaScript is the skill that is most in-demand for IT in 2020, according to a report from developer skills tester DevSkiller. The report, “Top IT Skills report 2020: Demand and Hiring Trends,” has JavaScript switching places with Java when compared to last year's report, with Java in third place this year, behind SQL."],
['are javascript developers in demand?', 'In one line difference between the two is: JavaScript is the programming language where as AngularJS is a framework based on JavaScript. ... It is also the basic for all java script based technologies like jquery, angular JS, bootstrap JS and so on. Angular JS is a framework written in javascript and uses MVC architecture.'],
['are javascript developers in demand?', 'Java applications are run in a virtual machine or web browser while JavaScript is run on a web browser. Java code is compiled whereas while JavaScript code is in text and in a web page. JavaScript is an OOP scripting language, whereas Java is an OOP programming language.'],
['are javascript developers in demand?', 'Things in the body tag are the things that should be displayed: the actual content. Javascript in the body is executed as it is read and as the page is rendered. Javascript in the head is interpreted before anything is rendered.'],
['are javascript developers in demand?', 'Web apps tend to be built using JavaScript, CSS and HTML5. Unlike mobile apps, there is no standard software development kit for building web apps. However, developers do have access to templates. Compared to mobile apps, web apps are usually quicker and easier to build — but they are much simpler in terms of features.'],
]
scores = model.predict(pairs)
print(scores.shape)
# (5,)# Or rank different texts based on similarity to a single text
ranks = model.rank(
'are javascript developers in demand?',
[
"JavaScript is the skill that is most in-demand for IT in 2020, according to a report from developer skills tester DevSkiller. The report, “Top IT Skills report 2020: Demand and Hiring Trends,” has JavaScript switching places with Java when compared to last year's report, with Java in third place this year, behind SQL.",
'In one line difference between the two is: JavaScript is the programming language where as AngularJS is a framework based on JavaScript. ... It is also the basic for all java script based technologies like jquery, angular JS, bootstrap JS and so on. Angular JS is a framework written in javascript and uses MVC architecture.',
'Java applications are run in a virtual machine or web browser while JavaScript is run on a web browser. Java code is compiled whereas while JavaScript code is in text and in a web page. JavaScript is an OOP scripting language, whereas Java is an OOP programming language.',
'Things in the body tag are the things that should be displayed: the actual content. Javascript in the body is executed as it is read and as the page is rendered. Javascript in the head is interpreted before anything is rendered.',
'Web apps tend to be built using JavaScript, CSS and HTML5. Unlike mobile apps, there is no standard software development kit for building web apps. However, developers do have access to templates. Compared to mobile apps, web apps are usually quicker and easier to build — but they are much simpler in terms of features.',
]
)
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
Evaluation
Metrics
Cross Encoder Reranking
Datasets:
gooaq-dev
,
NanoMSMARCO
,
NanoNFCorpus
and
NanoNQ
Approximate statistics based on the first 1000 samples:
question
answer
label
type
string
string
int
details
min: 21 characters
mean: 43.81 characters
max: 96 characters
min: 51 characters
mean: 252.46 characters
max: 405 characters
0: ~82.90%
1: ~17.10%
Samples:
question
answer
label
are javascript developers in demand?
JavaScript is the skill that is most in-demand for IT in 2020, according to a report from developer skills tester DevSkiller. The report, “Top IT Skills report 2020: Demand and Hiring Trends,” has JavaScript switching places with Java when compared to last year's report, with Java in third place this year, behind SQL.
1
are javascript developers in demand?
In one line difference between the two is: JavaScript is the programming language where as AngularJS is a framework based on JavaScript. ... It is also the basic for all java script based technologies like jquery, angular JS, bootstrap JS and so on. Angular JS is a framework written in javascript and uses MVC architecture.
0
are javascript developers in demand?
Java applications are run in a virtual machine or web browser while JavaScript is run on a web browser. Java code is compiled whereas while JavaScript code is in text and in a web page. JavaScript is an OOP scripting language, whereas Java is an OOP programming language.
@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 cross-encoder-testing reranker-bert-tiny-gooaq-bce on huggingface.co
258.3K
Total runs
1.7K
24-hour runs
-467
3-day runs
28.2K
7-day runs
123.5K
30-day runs
More Information About reranker-bert-tiny-gooaq-bce huggingface.co Model
More reranker-bert-tiny-gooaq-bce license Visit here:
reranker-bert-tiny-gooaq-bce huggingface.co is an AI model on huggingface.co that provides reranker-bert-tiny-gooaq-bce's model effect (), which can be used instantly with this cross-encoder-testing reranker-bert-tiny-gooaq-bce model. huggingface.co supports a free trial of the reranker-bert-tiny-gooaq-bce model, and also provides paid use of the reranker-bert-tiny-gooaq-bce. Support call reranker-bert-tiny-gooaq-bce model through api, including Node.js, Python, http.
reranker-bert-tiny-gooaq-bce huggingface.co is an online trial and call api platform, which integrates reranker-bert-tiny-gooaq-bce's modeling effects, including api services, and provides a free online trial of reranker-bert-tiny-gooaq-bce, you can try reranker-bert-tiny-gooaq-bce online for free by clicking the link below.
cross-encoder-testing reranker-bert-tiny-gooaq-bce online free url in huggingface.co:
reranker-bert-tiny-gooaq-bce is an open source model from GitHub that offers a free installation service, and any user can find reranker-bert-tiny-gooaq-bce on GitHub to install. At the same time, huggingface.co provides the effect of reranker-bert-tiny-gooaq-bce install, users can directly use reranker-bert-tiny-gooaq-bce installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
reranker-bert-tiny-gooaq-bce install url in huggingface.co: