Universe

gracyql

A thin GraphQL wrapper around spacy

An example of a basic Starlette app using Spacy and Graphene. The main goal is to be able to use the amazing power of spaCy from other languages and retrieving only the information you need thanks to the GraphQL query definition. The GraphQL schema tries to mimic as much as possible the original Spacy API with classes Doc, Span and Token.

Example

query ParserDisabledQuery { nlp(model: "en", disable: ["parser", "ner"]) { doc(text: "I live in Grenoble, France") { text tokens { id pos lemma dep } ents { start end label } } } }
Author info

Olivier Terrier

GitHuboterrier/gracyql

Categories apis

Submit your project

If you have a project that you want the spaCy community to make use of, you can suggest it by submitting a pull request to the spaCy website repository. The Universe database is open-source and collected in a simple JSON file. For more details on the formats and available fields, see the documentation. Looking for inspiration your own spaCy plugin or extension? Check out the project idea label on the issue tracker.

Read the docsJSON source