cognitive
Provides API endpoints for cognitive analysis.
This module contains API endpoints for performing cognitive analysis on words or phrases. It provides functionality to analyze the meaning, context, and relationships of input text using various linguistic and semantic techniques.
Key Functionality: - Analyzing the meaning and context of words or phrases - Identifying relationships and connections between words or phrases - Generating definitions and insights based on input text
Typical Use Cases: - Natural language processing applications - Text analytics and sentiment analysis - Semantic search and recommendation systems
Attributes
cognitive_router
module-attribute
cognitive_router = APIRouter(
prefix=format_path(RESOURCE_COGNITIVE),
tags=[RESOURCE_COGNITIVE],
responses=DEFAULT_HTTP_ERROR_RESPONSES,
)
Classes
Functions
cognitive_analyze
async
cognitive_analyze(
fastapi_request: Request,
request: GenerateDefinitionRequestV1,
job_pool: ThreadPoolExecutor = Depends(
job_pool_dependency
),
)
Analyze a word or phrase.