Text Processing
Effectue une tokenisation locale explicable, une segmentation, les mots vides, lemmes, racines, entités et n-grammes avec export JSONL ou CoNLL.
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/text-nlp-annotation-workbench' \
-H 'Content-Type: application/json' \
-d '{"textInput":"The quick fox emailed [email protected].","language":"en","outputFormat":"json","removeStopwords":true,"stemming":true,"lemmatize":true,"entityDetection":true,"ngramSize":2}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/text-nlp-annotation-workbench| Nom | Type | Requis | Description |
|---|---|---|---|
| textInput | textarea | Oui | — |
| language | select | Non | — |
| outputFormat | select | Non | — |
| removeStopwords | checkbox | Non | — |
| stemming | checkbox | Non | — |
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-text-nlp-annotation-workbench": {
"name": "text-nlp-annotation-workbench",
"description": "Effectue une tokenisation locale explicable, une segmentation, les mots vides, lemmes, racines, entités et n-grammes avec export JSONL ou CoNLL.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=text-nlp-annotation-workbench",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "text-nlp-annotation-workbench",
"arguments": {
"textInput": "The quick fox emailed [email protected].",
"language": "en",
"outputFormat": "json",
"removeStopwords": true,
"stemming": true,
"lemmatize": true,
"entityDetection": true,
"ngramSize": 2
}
}
}| lemmatize |
| checkbox |
| Non |
| — |
| entityDetection | checkbox | Non | — |
| ngramSize | number | Non | — |
Résultat JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Des questions ou un problème ? Contactez [email protected]