Method IsSarcasticAsync
- Namespace
- LMKit.TextAnalysis
- Assembly
- LM-Kit.NET.dll
IsSarcasticAsync(string, CancellationToken)
Analyzes the provided text to determine if it contains sarcasm.
public Task<bool> IsSarcasticAsync(string text, CancellationToken cancellationToken = default)
Parameters
text
stringThe text to analyze for sarcastic content. This should be a non-empty string representing the textual content whose sarcasm is to be classified.
cancellationToken
CancellationTokenOptional. A CancellationToken for handling cancellation requests.
Returns
Exceptions
- OperationCanceledException
Thrown when the operation is cancelled based on the CancellationToken.