Method Correct
- Namespace
- LMKit.TextEnhancement
- Assembly
- LM-Kit.NET.dll
Correct(string, CancellationToken)
Corrects grammar and spelling errors in the specified text.
public string Correct(string text, CancellationToken cancellationToken = default)
Parameters
text
stringThe text to correct.
cancellationToken
CancellationTokenOptional. A CancellationToken to handle cancellation requests.
Returns
- string
The corrected text.
Remarks
This method handles text of any size and preserves the original content's structure and formatting.