-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(text-clustering): add a route for lodex
- Loading branch information
Showing
2 changed files
with
62 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Entrypoint output format | ||
mimeType = application/json | ||
|
||
# OpenAPI Documentation - JSON format (dot notation) | ||
post.operationId = post-v1-noise-lodex | ||
post.summary = Dans un corpus, retourne la liste des identifiants des documents considérés comme du bruit. | ||
post.description = Utilise l'algorithme de *clustering* et retourne uniquement la liste des identifiants considérés comme du bruit par [HDBSCAN](https://hdbscan.readthedocs.io/en/latest/how_hdbscan_works.html). Route à utiliser dans Lodex | ||
post.tags.0 = clustering | ||
post.requestBody.content.application/x-gzip.schema.type = string | ||
post.requestBody.content.application/x-gzip.schema.format = binary | ||
post.requestBody.required = true | ||
post.responses.default.description = Informations permettant de récupérer les données le moment venu | ||
post.parameters.0.description = Indenter le JSON résultant | ||
post.parameters.0.in = query | ||
post.parameters.0.name = indent | ||
post.parameters.0.schema.type = boolean | ||
post.parameters.1.description = URL pour signaler que le traitement est terminé | ||
post.parameters.1.in = header | ||
post.parameters.1.name = X-Webhook-Success | ||
post.parameters.1.schema.type = string | ||
post.parameters.1.schema.format = uri | ||
post.parameters.1.required = false | ||
post.parameters.2.description = URL pour signaler que le traitement a échoué | ||
post.parameters.2.in = header | ||
post.parameters.2.name = X-Webhook-Failure | ||
post.parameters.2.schema.type = string | ||
post.parameters.2.schema.format = uri | ||
post.parameters.2.required = false | ||
#' | ||
|
||
[env] | ||
path = generator | ||
value = noise-lodex | ||
|
||
[use] | ||
plugin = basics | ||
plugin = analytics | ||
plugin = spawn | ||
|
||
# Step 1 (générique): Charger le fichier corpus | ||
[delegate] | ||
file = charger.cfg | ||
|
||
# Step 2 (générique): Traiter de manière asynchrone les items reçus | ||
[fork] | ||
standalone = true | ||
logger = logger.cfg | ||
|
||
# Step 2.1 (spécifique): Lancer un calcul sur tous les items reçus | ||
[fork/exec] | ||
# command should be executable ! | ||
command = ./v1/noise.py | ||
|
||
# Step 2.2 (générique): Enregistrer le résultat et signaler que le traitement est fini | ||
[fork/delegate] | ||
file = recorder.cfg | ||
|
||
# Step 3 : Renvoyer immédiatement un seul élément indiquant comment récupérer le résultat quand il sera prêt | ||
[delegate] | ||
file = recipient.cfg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters