Text Processing
Ejecuta tokenización, segmentación, palabras vacías, lemas, raíces, entidades y n-gramas locales explicables con exportación JSONL o CoNLL.
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/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}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/text-nlp-annotation-workbench| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| textInput | textarea | Sí | — |
| language | select | No | — |
| outputFormat | select | No | — |
| removeStopwords | checkbox | No | — |
| stemming | checkbox | No | — |
Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-text-nlp-annotation-workbench": {
"name": "text-nlp-annotation-workbench",
"description": "Ejecuta tokenización, segmentación, palabras vacías, lemas, raíces, entidades y n-gramas locales explicables con exportación JSONL o CoNLL.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=text-nlp-annotation-workbench",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"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 |
| No |
| — |
| entityDetection | checkbox | No | — |
| ngramSize | number | No | — |
Resultado JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}¿Dudas o problemas? Contacta con [email protected]