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
document : list
|
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_docList of conditional probabilities of topics given document.int : new_words_countCount of new words in test document not present in training set.double | new_words_percentagePercentage of new words in test document.