public interface IAiModelText
| Modifier and Type | Method and Description |
|---|---|
Document |
checkGrammar(Document sourceDocument,
CheckGrammarOptions options)
Checks grammar of the provided document.
|
Document |
summarize(Document[] sourceDocuments,
SummarizeOptions options)
Generates summaries for an array of documents, with options to control the summary length and other settings.
|
Document |
summarize(Document sourceDocument,
SummarizeOptions options)
Generates a summary of the specified document, with options to adjust the length of the summary.
|
Document |
translate(Document sourceDocument,
int targetLanguage) |
Document summarize(Document sourceDocument, SummarizeOptions options) throws java.lang.Exception
sourceDocument - The document to be summarized.options - Optional settings to control the summary length and other parameters.java.lang.ExceptionDocument summarize(Document[] sourceDocuments, SummarizeOptions options) throws java.lang.Exception
sourceDocuments - An array of documents to be summarized.options - Optional settings to control the summary length and other parametersjava.lang.ExceptionDocument checkGrammar(Document sourceDocument, CheckGrammarOptions options) throws java.lang.Exception
sourceDocument - The document being checked for grammar.options - Optional settings to control how grammar will be checked.Document with checked grammar.java.lang.Exception