mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-23 07:44:12 +03:00
chore: add 'concepCy' to spacy universe (#11255)
* chore: add 'concepCy' to spacy universe * docs: add 'slogan' to concepCy
This commit is contained in:
parent
d993df41e5
commit
cd09614ab2
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user