From c235ddf44f42ee91fdddae84e5327bd67115d543 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Tue, 6 Nov 2018 12:45:03 +0100 Subject: [PATCH] Add spacy-js to universe [ci-skip] --- website/universe/universe.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/website/universe/universe.json b/website/universe/universe.json index ab58d6f3e..242ed76e0 100644 --- a/website/universe/universe.json +++ b/website/universe/universe.json @@ -1004,6 +1004,36 @@ "github": "ines", "website": "https://ines.io" } + }, + { + "id": "spacy-js", + "title": "spacy-js", + "slogan": "JavaScript API for spaCy with Python REST API", + "github": "ines/spacy-js", + "description": "JavaScript interface for accessing linguistic annotations provided by spaCy. This project is mostly experimental and was developed for fun to play around with different ways of mimicking spaCy's Python API.\n\nThe results will still be computed in Python and made available via a REST API. The JavaScript API resembles spaCy's Python API as closely as possible (with a few exceptions, as the values are all pre-computed and it's tricky to express complex recursive relationships).", + "code_language": "javascript", + "code_example": [ + "const spacy = require('spacy');", + "", + "(async function() {", + " const nlp = spacy.load('en_core_web_sm');", + " const doc = await nlp('This is a text about Facebook.');", + " for (let ent of doc.ents) {", + " console.log(ent.text, ent.label);", + " }", + " for (let token of doc) {", + " console.log(token.text, token.pos, token.head.text);", + " }", + "})();" + ], + "author": "Ines Montani", + "author_links": { + "twitter": "_inesmontani", + "github": "ines", + "website": "https://ines.io" + }, + "category": ["nonpython"], + "tags": ["javascript"] } ], "projectCats": {