It is essential to confirm the availability of all required dependencies for both text classification and text clustering before initiating the training process. This involves sending two separate requests, one for each dependency model, to check their respective statuses:
| Text Normalization | Sentence Embedding | |
|---|---|---|
| Text Classification | check | check |
| Text Clustering | check | check (if LLM is used) |
Token Endpoint:
The following URL for checking dependency modules will be deprecated starting January 1, 2025:
{{baseUrl}}/sestekai-api/api/app/external-trainings/check-dependency-status
Please use the external URL for checking dependency modules provided below.
URL: {{baseUrl}}/sestekai-api/api/external/trainings/check-dependency-status
HTTP Method: POST
Content-Type: application/json
The access token acquired for the training must be included in the request header.
Text Normalization
Here's an example of a request:
curl --location '`{{baseUrl}}/sestekai-api/api/external/trainings/check-dependency-status`' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token> ' \
--data '{
"moduleName":"text-norm"
}'
Expected Response: 200 OK & Response Body: true
Sentence Embedding
Here's an example of a request:
curl --location '`{{baseUrl}}/sestekai-api/api/external/trainings/check-dependency-status`' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token> ' \
--data '{
"moduleName":"sentence-embedding"
}'
Expected Response: 200 OK & Response Body: true
