Optional options: SummarizationOptionsOptional options: KeywordExtractionOptionsParses a string that is expected to be JSON: as it is, else from inside the Markdown code fence it is or holds,
which a model asked for JSON alone often answers in. An LLM-backed class sends a text that still does not parse
for repair when attemptFixWithLLM is set.
The string to parse.
Optional options: ParseJsonOptions<T>Options for parsing and fixing.
The parsed object, or null if parsing and fixing fail.
Optional options: TokenizationOptionsOptional options: StemmingOptionsOptional options: TextNormalizationOptionsOptional options: SimilarityOptionsOptional options: SentimentAnalysisOptionsOptional options: LanguageDetectionOptionsReadonly utility
Routes each utility method to the most appropriate backend:
A summary, classification, keyword list, similarity or sentiment whose
methodnames a method only one class has goes to that class when the hybrid holds it. The statistical class takesfirst_n_sentencesandextractive_sentence_ranksummaries,naive_bayesandkeyword_matchingclassification,tf_idfandfrequency_basedkeywords,cosine_tfidf,jaccardandlevenshteinsimilarity andlexicon_basedsentiment; the LLM-backed class takesabstractive_llmandkey_points_llmsummaries,llm_zeroshotclassification,llmkeywords,llm_semanticsimilarity andllmsentiment. If the preferred backend is not held, the other one takes the call.