Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: Adding spacyrerank package to universe.json #13502

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions website/meta/universe.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
{
"resources": [
{
"id": "spacyrerank",
"title": "Rerank phrases on query using spacy and huggingface models",
"thumb": "",
"slogan": "Rerank with spacy now",
"description": "Rank phrases and text based on query by leveraging hugging-face models. Currently, we are only leveraging tiny-bert model",
"url": "https://github.com/Vishnunkumar/spacyrerank",
"github": "Vishnunkumar/spacyrerank",
"code_language": "python",
"author": "Vishnunkumar",
"author_links": {
"twitter": "@vishnunkumar_",
"github": "Vishnunkumar"
},
"code_example": [
"from spacyrerank.rerank import Reranker",
"query = 'done effort is wasted'",
"texts = ['work done','valuable man', 'effort wasted', 'Great work', 'great work mate']",
"reranker = Reranker(query, texts=texts)",
"reranker()",
"# [{'rank': 2, 'text': 'effort wasted', 'similarity-score': 0.877},",
"{'rank': 0, 'text': 'work done', 'similarity-score': 0.86}",
"{'rank': 3, 'text': 'Great work', 'similarity-score': 0.773}",
"{'rank': 4, 'text': 'great work mate', 'similarity-score': 0.757}",
"{'rank': 1, 'text': 'valuable man', 'similarity-score': 0.719}]"
],
"category": ["pipeline"],
"tags": ["nlp", "embeddings"]
},
{
"id": "spacy-vscode",
"title": "spaCy Visual Studio Code Extension",
Expand Down
Loading