From 6cfa1e1f47e8963519ff974eebe17ed414a4c2c5 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sat, 11 May 2019 15:37:30 +0200 Subject: [PATCH] Fix DependencyParser.predict docs (resolves #3561) --- website/docs/api/dependencyparser.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/docs/api/dependencyparser.md b/website/docs/api/dependencyparser.md index 329f96ead..58acc4425 100644 --- a/website/docs/api/dependencyparser.md +++ b/website/docs/api/dependencyparser.md @@ -102,10 +102,10 @@ Apply the pipeline's model to a batch of docs, without modifying them. > scores = parser.predict([doc1, doc2]) > ``` -| Name | Type | Description | -| ----------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `docs` | iterable | The documents to predict. | -| **RETURNS** | tuple | A `(scores, tensors)` tuple where `scores` is the model's prediction for each document and `tensors` is the token representations used to predict the scores. Each tensor is an array with one row for each token in the document. | +| Name | Type | Description | +| ----------- | ------------------- | ---------------------------------------------- | +| `docs` | iterable | The documents to predict. | +| **RETURNS** | `syntax.StateClass` | A helper class for the parse state (internal). | ## DependencyParser.set_annotations {#set_annotations tag="method"}