Welcome to the AI Toolkit Natural Language Processing (NLP) API documentation. This page provides an overview of the NLP API, its features, and how to use it effectively.
Features
- Text Classification: Classify text into predefined categories.
- Sentiment Analysis: Determine the sentiment of a piece of text.
- Entity Recognition: Identify and classify named entities in text.
- Language Detection: Detect the language of a given text.
Usage
To use the NLP API, you need to send a GET request to the following endpoint:
GET /ai_toolkit/en/api/nlp
Replace en
with your desired language code if applicable.
Example Request
GET /ai_toolkit/en/api/nlp?text=This is a sample text for NLP analysis.
Example Response
{
"text": "This is a sample text for NLP analysis.",
"classification": "General",
"sentiment": "Positive",
"entities": [
{
"entity": "NLP",
"type": "General"
}
],
"language": "en"
}
Further Reading
For more information, please visit our API Documentation.