{ "swagger" : "2.0", "info" : { "description" : "This API specification documents the Spacy NLP services hosted by the\n[Evolutionary and Hybrid AI (EHAI)](https://know.ai.vub.ac.be) research group of the [VUB AI-Lab](https://ai.vub.ac.be). These include tools for tokenization, lemmatization, noun chunking, named entity recognition, dependency parsing and distributional semantics, for English, German, Spanish, Portuguese, French, Italian and Dutch. These services are implemented for processing individual sentences as well as for processing multiple texts at once.\n", "version" : "1.0.0", "title" : "VUB Spacy API", "contact" : { "email" : "ehai@ai.vub.ac.be" }, "license" : { "name" : "Apache 2.0", "url" : "http://www.apache.org/licenses/LICENSE-2.0.html" } }, "host" : "penelope.vub.be", "basePath" : "/spacy-api/", "tags" : [ { "name" : "penelope", "description" : "Operations that satisfy the Penelope requirements" } ], "schemes" : [ "https" ], "paths" : { "/tokenize" : { "post" : { "tags" : [ "penelope" ], "summary" : "tokenizes a sentence", "description" : "Tokenizes a sentence", "operationId" : "tokenizeSentence", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacySentenceQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacySentenceQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyTokenizeResponse" } } } } }, "/texts-tokenize" : { "post" : { "tags" : [ "penelope" ], "summary" : "tokenizes a list of texts", "description" : "Tokenizes a list of texts", "operationId" : "tokenizeText", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacyTextsQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacyTextsQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyTextsTokenizeResponse" } } } } }, "/lemmatize" : { "post" : { "tags" : [ "penelope" ], "summary" : "lemmatizes a sentence", "description" : "Lemmatizes a sentence", "operationId" : "lemmatizeSentence", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacySentenceQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacySentenceQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyLemmatizeResponse" } } } } }, "/texts-lemmatize" : { "post" : { "tags" : [ "penelope" ], "summary" : "lemmatizes a list of texts", "description" : "Lemmatizes a list of texts", "operationId" : "lemmatizeText", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacyTextsQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacyTextsQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyTextsLemmatizeResponse" } } } } }, "/noun-chunks" : { "post" : { "tags" : [ "penelope" ], "summary" : "returns the noun chunks in a sentence", "description" : "Returns the noun chunks in a sentence", "operationId" : "nounchunkSentence", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacySentenceQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacySentenceQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyNounChunkResponse" } } } } }, "/texts-noun-chunks" : { "post" : { "tags" : [ "penelope" ], "summary" : "returns the noun chunks for a list of texts", "description" : "Returns the noun chunks tags for a list of texts", "operationId" : "nounChunkText", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacyTextsQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacyTextsQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyTextsNounChunkResponse" } } } } }, "/pos" : { "post" : { "tags" : [ "penelope" ], "summary" : "returns the part-of-speech tags of the words in a sentence", "description" : "Returns the noun chunks in a sentence", "operationId" : "posTagSentence", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacySentenceQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacySentenceQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyPosTagResponse" } } } } }, "/texts-pos-tags" : { "post" : { "tags" : [ "penelope" ], "summary" : "returns the part-of-speech tags for a list of texts", "description" : "Returns the part-of-speech tags for a list of texts", "operationId" : "nounPosText", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacyTextsQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacyTextsQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyTextsPosTagResponse" } } } } }, "/named-entities" : { "post" : { "tags" : [ "penelope" ], "summary" : "returns the named entities in a sentence", "description" : "Returns the named entities in a sentence", "operationId" : "NamedEntitySentence", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacySentenceQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacySentenceQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyNamedEntityResponse" } } } } }, "/texts-named-entities" : { "post" : { "tags" : [ "penelope" ], "summary" : "returns the named entities for a list of texts", "description" : "Returns the named entitites for a list of texts", "operationId" : "nounNamedEntitiesText", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacyTextsQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacyTextsQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyTextsNamedEntitiesResponse" } } } } }, "/dependencies" : { "post" : { "tags" : [ "penelope" ], "summary" : "returns a dependency anlysis of a sentence", "description" : "Returns a dependency analysis of a sentence", "operationId" : "DependenciesSentence", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacySentenceQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacySentenceQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyDependencyResponse" } } } } }, "/texts-dependencies" : { "post" : { "tags" : [ "penelope" ], "summary" : "returns dependency analyses for a list of texts", "description" : "Returns dependency analyses for a list of texts", "operationId" : "nounDependenciesText", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacyTextsQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacyTextsQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyTextsDependenciesResponse" } } } } }, "/embeddings" : { "post" : { "tags" : [ "penelope" ], "summary" : "returns the word embeddings for the words in a sentence", "description" : "Returns the word embeddings for the words in a sentence", "operationId" : "EmbeddingsSentence", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacySentenceQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacySentenceQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyEmbeddingResponse" } } } } }, "/texts-embeddings" : { "post" : { "tags" : [ "penelope" ], "summary" : "returns word embeddings for a list of texts", "description" : "Returns word embeddings for a list of texts", "operationId" : "EmbeddingsText", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacyTextsQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacyTextsQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyTextsWordEmbeddingsResponse" } } } } }, "/split-sentences" : { "post" : { "tags" : [ "penelope" ], "summary" : "splits a text into sentences", "description" : "Splits a text into sentences", "operationId" : "SentencesText", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacyTextQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacyTextQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacySplitSentenceResponse" } } } } }, "/texts-split-sentences" : { "post" : { "tags" : [ "penelope" ], "summary" : "splits a list of texts into lists of sentences", "description" : "Splits a list of texts into lists of sentences", "operationId" : "SplitText", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "SpacyTextsQuery", "description" : "Query", "required" : false, "schema" : { "$ref" : "#/definitions/SpacyTextsQuery" } } ], "responses" : { "200" : { "description" : "operation succeeded", "schema" : { "$ref" : "#/definitions/SpacyTextsSplitSentenceResponse" } } } } } }, "definitions" : { "SpacySentenceQuery" : { "type" : "object", "required" : [ "model", "sentence" ], "properties" : { "sentence" : { "type" : "string", "format" : "string", "example" : "Would you like to use Penelope?" }, "model" : { "type" : "string", "format" : "string", "example" : "en", "description" : "Specify the language model you want to use. Possible values: en, de, es, pt, fr, it, nl" } }, "example" : { "sentence" : "Would you like to use Penelope?", "model" : "en" } }, "SpacyTextQuery" : { "type" : "object", "required" : [ "model", "text" ], "properties" : { "text" : { "type" : "string", "example" : "Would you like to use Penelope? It is a fantastic toolkit" }, "model" : { "type" : "string", "format" : "string", "example" : "en", "description" : "Specify the language model you want to use. Possible values: en, de, es, pt, fr, it, nl" } }, "example" : { "model" : "en", "text" : "Would you like to use Penelope? It is a fantastic toolkit" } }, "SpacyTextsQuery" : { "type" : "object", "required" : [ "model", "texts" ], "properties" : { "texts" : { "type" : "array", "example" : [ "This is sentence 1 of text 1. This is sentence 2 of text 1.", "This is sentence 1 of text 2." ], "items" : { "type" : "string" } }, "model" : { "type" : "string", "format" : "string", "example" : "en", "description" : "Specify the language model you want to use. Possible values: en, de, es, pt, fr, it, nl" } }, "example" : { "texts" : [ "This is sentence 1 of text 1. This is sentence 2 of text 1.", "This is sentence 1 of text 2." ], "model" : "en" } }, "SpacyTokenizeResponse" : { "type" : "object", "required" : [ "tokens" ], "properties" : { "tokens" : { "type" : "array", "example" : [ "Would", "you", "like", "to", "use", "Penelope", "?" ], "items" : { "type" : "string" } } }, "example" : { "tokens" : [ "Would", "you", "like", "to", "use", "Penelope", "?" ] } }, "SpacyLemmatizeResponse" : { "type" : "object", "required" : [ "lemmas" ], "properties" : { "lemmas" : { "type" : "array", "example" : [ "would", "-PRON-", "like", "to", "use", "penelope", "?" ], "items" : { "type" : "string" } } }, "example" : { "lemmas" : [ "would", "-PRON-", "like", "to", "use", "penelope", "?" ] } }, "SpacyNounChunkResponse" : { "type" : "object", "required" : [ "noun_chunks" ], "properties" : { "noun_chunks" : { "type" : "array", "example" : [ "you", "Penelope" ], "items" : { "type" : "string" } } }, "example" : { "noun_chunks" : [ "you", "Penelope" ] } }, "SpacyPosTagResponse" : { "type" : "object", "required" : [ "tagged_words" ], "properties" : { "tagged_words" : { "type" : "array", "example" : [ { "text" : "Would", "tag" : "MD" }, { "text" : "you", "tag" : "PRP" }, { "text" : "like", "tag" : "VB" }, { "text" : "to", "tag" : "TO" }, { "text" : "use", "tag" : "VB" }, { "text" : "Penelope", "tag" : "NNP" }, { "text" : "?", "tag" : "." } ], "items" : { "type" : "array", "items" : { "type" : "string" } } } }, "example" : { "tagged_words" : [ { "text" : "Would", "tag" : "MD" }, { "text" : "you", "tag" : "PRP" }, { "text" : "like", "tag" : "VB" }, { "text" : "to", "tag" : "TO" }, { "text" : "use", "tag" : "VB" }, { "text" : "Penelope", "tag" : "NNP" }, { "text" : "?", "tag" : "." } ] } }, "SpacyNamedEntityResponse" : { "type" : "object", "required" : [ "named_entities" ], "properties" : { "named_entities" : { "type" : "array", "example" : [ { "text" : "Penelope", "ent" : "ORG" } ], "items" : { "type" : "string" } } }, "example" : { "named_entities" : [ { "text" : "Penelope", "ent" : "ORG" } ] } }, "SpacyDependencyResponse" : { "type" : "object", "required" : [ "dependencies" ], "properties" : { "dependencies" : { "type" : "array", "example" : [ { "tree" : [ { "node_id" : "1", "head_id" : 3, "dependency" : "aux", "token" : "Would", "tag" : "MD" }, { "node_id" : "2", "head_id" : 3, "dependency" : "nsubj", "token" : "you", "tag" : "PRP" }, { "node_id" : "3", "head_id" : 3, "dependency" : "ROOT", "token" : "like", "tag" : "VB" }, { "node_id" : "4", "head_id" : 5, "dependency" : "aux", "token" : "to", "tag" : "TO" }, { "node_id" : "5", "head_id" : 3, "dependency" : "xcomp", "token" : "use", "tag" : "VB" }, { "node_id" : "6", "head_id" : 5, "dependency" : "dobj", "token" : "Penelope", "tag" : "NNP" }, { "node_id" : "7", "head_id" : 3, "dependency" : "punct", "token" : "?", "tag" : "." } ], "sent_id" : 0 } ], "items" : { "type" : "string" } } }, "example" : { "dependencies" : [ { "tree" : [ { "node_id" : "1", "head_id" : 3, "dependency" : "aux", "token" : "Would", "tag" : "MD" }, { "node_id" : "2", "head_id" : 3, "dependency" : "nsubj", "token" : "you", "tag" : "PRP" }, { "node_id" : "3", "head_id" : 3, "dependency" : "ROOT", "token" : "like", "tag" : "VB" }, { "node_id" : "4", "head_id" : 5, "dependency" : "aux", "token" : "to", "tag" : "TO" }, { "node_id" : "5", "head_id" : 3, "dependency" : "xcomp", "token" : "use", "tag" : "VB" }, { "node_id" : "6", "head_id" : 5, "dependency" : "dobj", "token" : "Penelope", "tag" : "NNP" }, { "node_id" : "7", "head_id" : 3, "dependency" : "punct", "token" : "?", "tag" : "." } ], "sent_id" : 0 } ] } }, "SpacyEmbeddingResponse" : { "type" : "object", "required" : [ "vectors" ], "properties" : { "vectors" : { "type" : "array", "example" : [ { "vector" : [ -1.1959002017974854, 1.5800340175628662, "..." ], "token" : "Would" }, { "vector" : [ -0.5176888704299927, 0.18987759947776794, "..." ], "token" : "you" }, "..." ], "items" : { "type" : "string" } } }, "example" : { "vectors" : [ { "vector" : [ -1.1959002017974854, 1.5800340175628662, "..." ], "token" : "Would" }, { "vector" : [ -0.5176888704299927, 0.18987759947776794, "..." ], "token" : "you" }, "..." ] } }, "SpacySplitSentenceResponse" : { "type" : "object", "required" : [ "sentences" ], "properties" : { "sentences" : { "type" : "array", "example" : [ "Would you like to use Penelope?", "It is a fantastic toolkit." ], "items" : { "type" : "string" } } }, "example" : { "sentences" : [ "Would you like to use Penelope?", "It is a fantastic toolkit." ] } }, "SpacyTextsTokenizeResponse" : { "type" : "object", "required" : [ "texts_tokens" ], "properties" : { "texts_tokens" : { "type" : "array", "example" : [ [ [ "This", "is", "sentence", "1", "of", "text", "1", "." ], [ "This", "is", "sentence", "2", "of", "text", "1", "." ] ], [ [ "This", "is", "sentence", "1", "of", "text", "2", "." ] ] ], "items" : { "type" : "string" } } }, "example" : { "texts_tokens" : [ [ [ "This", "is", "sentence", "1", "of", "text", "1", "." ], [ "This", "is", "sentence", "2", "of", "text", "1", "." ] ], [ [ "This", "is", "sentence", "1", "of", "text", "2", "." ] ] ] } }, "SpacyTextsLemmatizeResponse" : { "type" : "object", "required" : [ "texts_lemmas" ], "properties" : { "texts_lemmas" : { "type" : "array", "example" : [ [ [ "this", "be", "sentence", "1", "of", "text", "1", "." ], [ "this", "be", "sentence", "2", "of", "text", "1", "." ] ], [ [ "this", "be", "sentence", "1", "of", "text", "2", "." ] ] ], "items" : { "type" : "string" } } }, "example" : { "texts_lemmas" : [ [ [ "this", "be", "sentence", "1", "of", "text", "1", "." ], [ "this", "be", "sentence", "2", "of", "text", "1", "." ] ], [ [ "this", "be", "sentence", "1", "of", "text", "2", "." ] ] ] } }, "SpacyTextsNounChunkResponse" : { "type" : "object", "required" : [ "texts_noun_chunks" ], "properties" : { "texts_noun_chunks" : { "type" : "array", "example" : [ [ [ "sentence", "text" ], [ "sentence", "text" ] ], [ [ "sentence", "text" ] ] ], "items" : { "type" : "string" } } }, "example" : { "texts_noun_chunks" : [ [ [ "sentence", "text" ], [ "sentence", "text" ] ], [ [ "sentence", "text" ] ] ] } }, "SpacyTextsPosTagResponse" : { "type" : "object", "required" : [ "texts_pos_tags" ], "properties" : { "texts_pos_tags" : { "type" : "array", "example" : [ [ [ { "text" : "This", "tag" : "DT" }, { "text" : "is", "tag" : "VBZ" }, { "text" : "sentence", "tag" : "NN" }, { "text" : "1", "tag" : "CD" }, { "text" : "of", "tag" : "IN" }, { "text" : "text", "tag" : "NN" }, { "text" : "1", "tag" : "CD" }, { "text" : ".", "tag" : "." } ], [ { "text" : "This", "tag" : "DT" }, { "text" : "is", "tag" : "VBZ" }, { "text" : "sentence", "tag" : "NN" }, { "text" : "2", "tag" : "CD" }, { "text" : "of", "tag" : "IN" }, { "text" : "text", "tag" : "NN" }, { "text" : "1", "tag" : "CD" }, { "text" : ".", "tag" : "." } ] ], [ [ { "text" : "This", "tag" : "DT" }, { "text" : "is", "tag" : "VBZ" }, { "text" : "sentence", "tag" : "NN" }, { "text" : "1", "tag" : "CD" }, { "text" : "of", "tag" : "IN" }, { "text" : "text", "tag" : "NN" }, { "text" : "2", "tag" : "CD" }, { "text" : ".", "tag" : "." } ] ] ], "items" : { "type" : "string" } } }, "example" : { "texts_pos_tags" : [ [ [ { "text" : "This", "tag" : "DT" }, { "text" : "is", "tag" : "VBZ" }, { "text" : "sentence", "tag" : "NN" }, { "text" : "1", "tag" : "CD" }, { "text" : "of", "tag" : "IN" }, { "text" : "text", "tag" : "NN" }, { "text" : "1", "tag" : "CD" }, { "text" : ".", "tag" : "." } ], [ { "text" : "This", "tag" : "DT" }, { "text" : "is", "tag" : "VBZ" }, { "text" : "sentence", "tag" : "NN" }, { "text" : "2", "tag" : "CD" }, { "text" : "of", "tag" : "IN" }, { "text" : "text", "tag" : "NN" }, { "text" : "1", "tag" : "CD" }, { "text" : ".", "tag" : "." } ] ], [ [ { "text" : "This", "tag" : "DT" }, { "text" : "is", "tag" : "VBZ" }, { "text" : "sentence", "tag" : "NN" }, { "text" : "1", "tag" : "CD" }, { "text" : "of", "tag" : "IN" }, { "text" : "text", "tag" : "NN" }, { "text" : "2", "tag" : "CD" }, { "text" : ".", "tag" : "." } ] ] ] } }, "SpacyTextsNamedEntitiesResponse" : { "type" : "object", "required" : [ "texts_named_entities" ], "properties" : { "texts_named_entities" : { "type" : "array", "example" : [ [ { "text" : "1", "ent" : "CARDINAL" }, { "text" : "1", "ent" : "CARDINAL" }, { "text" : "2", "ent" : "CARDINAL" }, { "text" : "1", "ent" : "CARDINAL" } ], [ { "text" : "1", "ent" : "CARDINAL" }, { "text" : "2", "ent" : "CARDINAL" } ] ], "items" : { "type" : "string" } } }, "example" : { "texts_named_entities" : [ [ { "text" : "1", "ent" : "CARDINAL" }, { "text" : "1", "ent" : "CARDINAL" }, { "text" : "2", "ent" : "CARDINAL" }, { "text" : "1", "ent" : "CARDINAL" } ], [ { "text" : "1", "ent" : "CARDINAL" }, { "text" : "2", "ent" : "CARDINAL" } ] ] } }, "SpacyTextsDependenciesResponse" : { "type" : "object", "required" : [ "texts_dependencies" ], "properties" : { "texts_dependencies" : { "type" : "array", "example" : [ [ [ { "tree" : [ { "node_id" : "1", "head_id" : 2, "dependency" : "nsubj", "token" : "This", "tag" : "DT" }, { "node_id" : "2", "head_id" : 2, "dependency" : "ROOT", "token" : "is", "tag" : "VBZ" }, { "node_id" : "3", "head_id" : 2, "dependency" : "attr", "token" : "sentence", "tag" : "NN" }, { "node_id" : "4", "head_id" : 3, "dependency" : "nummod", "token" : "1", "tag" : "CD" }, { "node_id" : "5", "head_id" : 4, "dependency" : "prep", "token" : "of", "tag" : "IN" }, { "node_id" : "6", "head_id" : 5, "dependency" : "pobj", "token" : "text", "tag" : "NN" }, { "node_id" : "7", "head_id" : 6, "dependency" : "nummod", "token" : "1", "tag" : "CD" }, { "node_id" : "8", "head_id" : 2, "dependency" : "punct", "token" : ".", "tag" : "." } ], "sent_id" : 0 }, { "tree" : [ { "node_id" : "1", "head_id" : 2, "dependency" : "nsubj", "token" : "This", "tag" : "DT" }, { "node_id" : "2", "head_id" : 2, "dependency" : "ROOT", "token" : "is", "tag" : "VBZ" }, { "node_id" : "3", "head_id" : 2, "dependency" : "attr", "token" : "sentence", "tag" : "NN" }, { "node_id" : "4", "head_id" : 3, "dependency" : "nummod", "token" : "2", "tag" : "CD" }, { "node_id" : "5", "head_id" : 4, "dependency" : "prep", "token" : "of", "tag" : "IN" }, { "node_id" : "6", "head_id" : 5, "dependency" : "pobj", "token" : "text", "tag" : "NN" }, { "node_id" : "7", "head_id" : 6, "dependency" : "nummod", "token" : "1", "tag" : "CD" }, { "node_id" : "8", "head_id" : 2, "dependency" : "punct", "token" : ".", "tag" : "." } ], "sent_id" : 1 } ] ], [ [ { "tree" : [ { "node_id" : "1", "head_id" : 2, "dependency" : "nsubj", "token" : "This", "tag" : "DT" }, { "node_id" : "2", "head_id" : 2, "dependency" : "ROOT", "token" : "is", "tag" : "VBZ" }, { "node_id" : "3", "head_id" : 2, "dependency" : "attr", "token" : "sentence", "tag" : "NN" }, { "node_id" : "4", "head_id" : 3, "dependency" : "nummod", "token" : "1", "tag" : "CD" }, { "node_id" : "5", "head_id" : 4, "dependency" : "prep", "token" : "of", "tag" : "IN" }, { "node_id" : "6", "head_id" : 5, "dependency" : "pobj", "token" : "text", "tag" : "NN" }, { "node_id" : "7", "head_id" : 6, "dependency" : "nummod", "token" : "2", "tag" : "CD" }, { "node_id" : "8", "head_id" : 2, "dependency" : "punct", "token" : ".", "tag" : "." } ], "sent_id" : 0 } ] ] ], "items" : { "type" : "string" } } }, "example" : { "texts_dependencies" : [ [ [ { "tree" : [ { "node_id" : "1", "head_id" : 2, "dependency" : "nsubj", "token" : "This", "tag" : "DT" }, { "node_id" : "2", "head_id" : 2, "dependency" : "ROOT", "token" : "is", "tag" : "VBZ" }, { "node_id" : "3", "head_id" : 2, "dependency" : "attr", "token" : "sentence", "tag" : "NN" }, { "node_id" : "4", "head_id" : 3, "dependency" : "nummod", "token" : "1", "tag" : "CD" }, { "node_id" : "5", "head_id" : 4, "dependency" : "prep", "token" : "of", "tag" : "IN" }, { "node_id" : "6", "head_id" : 5, "dependency" : "pobj", "token" : "text", "tag" : "NN" }, { "node_id" : "7", "head_id" : 6, "dependency" : "nummod", "token" : "1", "tag" : "CD" }, { "node_id" : "8", "head_id" : 2, "dependency" : "punct", "token" : ".", "tag" : "." } ], "sent_id" : 0 }, { "tree" : [ { "node_id" : "1", "head_id" : 2, "dependency" : "nsubj", "token" : "This", "tag" : "DT" }, { "node_id" : "2", "head_id" : 2, "dependency" : "ROOT", "token" : "is", "tag" : "VBZ" }, { "node_id" : "3", "head_id" : 2, "dependency" : "attr", "token" : "sentence", "tag" : "NN" }, { "node_id" : "4", "head_id" : 3, "dependency" : "nummod", "token" : "2", "tag" : "CD" }, { "node_id" : "5", "head_id" : 4, "dependency" : "prep", "token" : "of", "tag" : "IN" }, { "node_id" : "6", "head_id" : 5, "dependency" : "pobj", "token" : "text", "tag" : "NN" }, { "node_id" : "7", "head_id" : 6, "dependency" : "nummod", "token" : "1", "tag" : "CD" }, { "node_id" : "8", "head_id" : 2, "dependency" : "punct", "token" : ".", "tag" : "." } ], "sent_id" : 1 } ] ], [ [ { "tree" : [ { "node_id" : "1", "head_id" : 2, "dependency" : "nsubj", "token" : "This", "tag" : "DT" }, { "node_id" : "2", "head_id" : 2, "dependency" : "ROOT", "token" : "is", "tag" : "VBZ" }, { "node_id" : "3", "head_id" : 2, "dependency" : "attr", "token" : "sentence", "tag" : "NN" }, { "node_id" : "4", "head_id" : 3, "dependency" : "nummod", "token" : "1", "tag" : "CD" }, { "node_id" : "5", "head_id" : 4, "dependency" : "prep", "token" : "of", "tag" : "IN" }, { "node_id" : "6", "head_id" : 5, "dependency" : "pobj", "token" : "text", "tag" : "NN" }, { "node_id" : "7", "head_id" : 6, "dependency" : "nummod", "token" : "2", "tag" : "CD" }, { "node_id" : "8", "head_id" : 2, "dependency" : "punct", "token" : ".", "tag" : "." } ], "sent_id" : 0 } ] ] ] } }, "SpacyTextsWordEmbeddingsResponse" : { "type" : "object", "required" : [ "texts_vectors" ], "properties" : { "texts_vectors" : { "type" : "array", "example" : [ [ [ { "vector" : [ 1.485705852508545, 2.4276301860809326, "..." ] } ] ] ], "items" : { "type" : "string" } } }, "example" : { "texts_vectors" : [ [ [ { "vector" : [ 1.485705852508545, 2.4276301860809326, "..." ] } ] ] ] } }, "SpacyTextsSplitSentenceResponse" : { "type" : "object", "required" : [ "texts_sentences" ], "properties" : { "texts_sentences" : { "type" : "array", "example" : [ [ "This is sentence 1 of text 1.", "This is sentence 2 of text 1." ], [ "This is sentence 1 of text 2." ] ], "items" : { "type" : "string" } } }, "example" : { "texts_sentences" : [ [ "This is sentence 1 of text 1.", "This is sentence 2 of text 1." ], [ "This is sentence 1 of text 2." ] ] } } } }