mirror of https://github.com/explosion/spaCy.git
Fix universe.json and auto-format [ci skip]
This commit is contained in:
parent
f4008bdb13
commit
7f0f674a1b
|
@ -14,14 +14,14 @@
|
||||||
"client.entities('John Doe is a Go Developer at Google')",
|
"client.entities('John Doe is a Go Developer at Google')",
|
||||||
"# [{'end': 8, 'start': 0, 'text': 'John Doe', 'type': 'PERSON'}, {'end': 25, 'start': 13, 'text': 'Go Developer', 'type': 'POSITION'}, {'end': 35,'start': 30, 'text': 'Google', 'type': 'ORG'}]"
|
"# [{'end': 8, 'start': 0, 'text': 'John Doe', 'type': 'PERSON'}, {'end': 25, 'start': 13, 'text': 'Go Developer', 'type': 'POSITION'}, {'end': 35,'start': 30, 'text': 'Google', 'type': 'ORG'}]"
|
||||||
],
|
],
|
||||||
"thumb":"https://avatars.githubusercontent.com/u/77671902",
|
"thumb": "https://avatars.githubusercontent.com/u/77671902",
|
||||||
"image":"https://nlpcloud.io/assets/images/logo.svg",
|
"image": "https://nlpcloud.io/assets/images/logo.svg",
|
||||||
"code_language": "python",
|
"code_language": "python",
|
||||||
"author": "NLPCloud.io",
|
"author": "NLPCloud.io",
|
||||||
"author_links": {
|
"author_links": {
|
||||||
"github": "nlpcloud",
|
"github": "nlpcloud",
|
||||||
"twitter": "cloud_nlp",
|
"twitter": "cloud_nlp",
|
||||||
"website": "https://nlpcloud.io"
|
"website": "https://nlpcloud.io"
|
||||||
},
|
},
|
||||||
"category": ["apis", "nonpython", "standalone"],
|
"category": ["apis", "nonpython", "standalone"],
|
||||||
"tags": ["api", "deploy", "production"]
|
"tags": ["api", "deploy", "production"]
|
||||||
|
@ -42,17 +42,17 @@
|
||||||
"print(doc._.person_name)",
|
"print(doc._.person_name)",
|
||||||
"# ['Meghana S.R Bhange', 'Asha']"
|
"# ['Meghana S.R Bhange', 'Asha']"
|
||||||
],
|
],
|
||||||
"thumb":"https://i.ibb.co/jwGVWPZ/rainbow-bohemian-logo-removebg-preview.png",
|
"thumb": "https://i.ibb.co/jwGVWPZ/rainbow-bohemian-logo-removebg-preview.png",
|
||||||
"code_language": "python",
|
"code_language": "python",
|
||||||
"author": "Meghana Bhange",
|
"author": "Meghana Bhange",
|
||||||
"author_links": {
|
"author_links": {
|
||||||
"github": "meghanabhange",
|
"github": "meghanabhange",
|
||||||
"twitter": "_aspiringcat"
|
"twitter": "_aspiringcat"
|
||||||
},
|
},
|
||||||
"category": ["standalone"],
|
"category": ["standalone"],
|
||||||
"tags": ["person-name-detection"]
|
"tags": ["person-name-detection"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "eMFDscore",
|
"id": "eMFDscore",
|
||||||
"title": "eMFDscore : Extended Moral Foundation Dictionary Scoring for Python",
|
"title": "eMFDscore : Extended Moral Foundation Dictionary Scoring for Python",
|
||||||
"slogan": "Extended Moral Foundation Dictionary Scoring for Python",
|
"slogan": "Extended Moral Foundation Dictionary Scoring for Python",
|
||||||
|
@ -65,20 +65,20 @@
|
||||||
"DICT_TYPE = 'emfd'",
|
"DICT_TYPE = 'emfd'",
|
||||||
"PROB_MAP = 'single'",
|
"PROB_MAP = 'single'",
|
||||||
"SCORE_METHOD = 'bow'",
|
"SCORE_METHOD = 'bow'",
|
||||||
"OUT_METRICS = 'vice-virtue'",
|
"OUT_METRICS = 'vice-virtue'",
|
||||||
"OUT_CSV_PATH = 'single-vv.csv'",
|
"OUT_CSV_PATH = 'single-vv.csv'",
|
||||||
"df = score_docs(template_input,DICT_TYPE,PROB_MAP,SCORE_METHOD,OUT_METRICS,num_docs)",
|
"df = score_docs(template_input,DICT_TYPE,PROB_MAP,SCORE_METHOD,OUT_METRICS,num_docs)"
|
||||||
],
|
],
|
||||||
"code_language": "python",
|
"code_language": "python",
|
||||||
"author": "Media Neuroscience Lab",
|
"author": "Media Neuroscience Lab",
|
||||||
"author_links": {
|
"author_links": {
|
||||||
"github": "medianeuroscience",
|
"github": "medianeuroscience",
|
||||||
"twitter": "medianeuro"
|
"twitter": "medianeuro"
|
||||||
},
|
},
|
||||||
"category": ["research", "teaching"],
|
"category": ["research", "teaching"],
|
||||||
"tags": ["morality", "dictionary", "sentiment"]
|
"tags": ["morality", "dictionary", "sentiment"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "skweak",
|
"id": "skweak",
|
||||||
"title": "skweak",
|
"title": "skweak",
|
||||||
"slogan": "Weak supervision for NLP",
|
"slogan": "Weak supervision for NLP",
|
||||||
|
@ -2087,9 +2087,9 @@
|
||||||
"",
|
"",
|
||||||
"# Load an spacy model (supported models are \"es\" and \"en\") ",
|
"# Load an spacy model (supported models are \"es\" and \"en\") ",
|
||||||
"nlp = spacy.load('en')",
|
"nlp = spacy.load('en')",
|
||||||
"# Spacy 3.x",
|
"# Spacy 3.x",
|
||||||
"nlp.add_pipe(\"spacy_wordnet\", after='tagger', config={'lang': nlp.lang})",
|
"nlp.add_pipe(\"spacy_wordnet\", after='tagger', config={'lang': nlp.lang})",
|
||||||
"# Spacy 2.x",
|
"# Spacy 2.x",
|
||||||
"# nlp.add_pipe(WordnetAnnotator(nlp.lang), after='tagger')",
|
"# nlp.add_pipe(WordnetAnnotator(nlp.lang), after='tagger')",
|
||||||
"token = nlp('prices')[0]",
|
"token = nlp('prices')[0]",
|
||||||
"",
|
"",
|
||||||
|
|
Loading…
Reference in New Issue