Table Of Contents

Commands model:lda/predict

[ALPHA] Predict conditional probabilities of topics given document.

POST /v1/commands/

GET /v1/commands/:id

Request

Route

POST /v1/commands/

Body

name:

model:lda/predict

arguments:

model : Model

Reference to the model for which topics are to be determined.

document : list

Document whose topics are to be predicted.


Headers

Authorization: test_api_key_1
Content-type: application/json

Description

Predicts conditional probabilities of topics given document using trained Latent Dirichlet Allocation model. The input document is represented as a list of strings


Response

Status

200 OK

Body

Returns information about the command. See the Response Body for Get Command here below. It is the same.

GET /v1/commands/:id

Request

Route

GET /v1/commands/18

Body

(None)

Headers

Authorization: test_api_key_1
Content-type: application/json

Response

Status

200 OK

Body

dict

Dictionary containing predicted topics. The data returned is composed of multiple keys:

list of doubles | topics_given_doc
List of conditional probabilities of topics given document.
int : new_words_count
Count of new words in test document not present in training set.
double | new_words_percentage
Percentage of new words in test document.