mirror of
https://github.com/explosion/spaCy.git
synced 2025-09-19 18:42:37 +03:00
Update universe.json
This commit is contained in:
parent
82fc2ecfa5
commit
7dc18e5949
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user