Update universe.json

This commit is contained in:
Vishnu Nandakumar 2024-05-17 12:31:55 +05:30 committed by GitHub
parent 82fc2ecfa5
commit 7dc18e5949
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",