chore: add 'concepCy' to spacy universe (#11255)

* chore: add 'concepCy' to spacy universe

* docs: add 'slogan' to concepCy
This commit is contained in:
Jules Belveze 2022-08-04 08:42:38 +02:00 committed by GitHub
parent d993df41e5
commit cd09614ab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,39 @@
{ {
"resources": [ "resources": [
{
"id": "concepcy",
"title": "concepCy",
"slogan": "A multilingual knowledge graph in spaCy",
"description": "A spaCy wrapper for ConceptNet, a freely-available semantic network designed to help computers understand the meaning of words.",
"github": "JulesBelveze/concepcy",
"pip": "concepcy",
"code_example": [
"import spacy",
"import concepcy",
"",
"nlp = spacy.load('en_core_web_sm')",
"# Using default concepCy configuration",
"nlp.add_pipe('concepcy')",
"",
"doc = nlp('WHO is a lovely company')",
"",
"# Access all the 'RelatedTo' relations from the Doc",
"for word, relations in doc._.relatedto.items():",
" print(f'Word: {word}\n{relations}')",
"",
"# Access the 'RelatedTo' relations word by word",
"for token in doc:",
" print(f'Word: {token}\n{token._.relatedto}')"
],
"category": ["pipeline"],
"image": "https://github.com/JulesBelveze/concepcy/blob/main/figures/concepcy.png",
"tags": ["semantic", "ConceptNet"],
"author": "Jules Belveze",
"author_links": {
"github": "JulesBelveze",
"website": "https://www.linkedin.com/in/jules-belveze/"
}
},
{ {
"id": "spacyfishing", "id": "spacyfishing",
"title": "spaCy fishing", "title": "spaCy fishing",