Universe

spacy-graphql

Query spaCy's linguistic annotations using GraphQL

A very simple and experimental app that lets you query spaCy's linguistic annotations using GraphQL. The API currently supports most token attributes, named entities, sentences and text categories (if available as doc.cats, i.e. if you added a text classifier to a model). The meta field will return the model meta data. Models are only loaded once and kept in memory.

Example

{ nlp(text: "Zuckerberg is the CEO of Facebook.", model: "en_core_web_sm") { meta { lang description } doc { text tokens { text pos_ } ents { text label_ } } } }
View more
Author info

Ines Montani

GitHubines/spacy-graphql

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