Interface: StatisticalUtilityAIConfig
Defined in: packages/agentos/src/cognition/nlp/ai_utilities/StatisticalUtilityAI.ts:266
Base configuration for any IUtilityAI implementation.
Extends
Properties
classifierConfig?
optionalclassifierConfig:object
Defined in: packages/agentos/src/cognition/nlp/ai_utilities/StatisticalUtilityAI.ts:287
naiveBayes?
optionalnaiveBayes:object
naiveBayes.defaultAlpha?
optionaldefaultAlpha:number
naiveBayes.defaultModelId?
optionaldefaultModelId:string
naiveBayes.modelStoragePath?
optionalmodelStoragePath:string
customStopWordsPaths?
optionalcustomStopWordsPaths:Record<string,string>
Defined in: packages/agentos/src/cognition/nlp/ai_utilities/StatisticalUtilityAI.ts:276
A stop-word file for each language code, one word a line.
defaultLanguage?
optionaldefaultLanguage:string
Defined in: packages/agentos/src/cognition/nlp/ai_utilities/IUtilityAI.ts:21
Default language for processing if not specified in method options (e.g., 'en', 'es'). BCP-47 format preferred.
Inherited from
UtilityAIConfigBase.defaultLanguage
defaultStopWordsLanguage?
optionaldefaultStopWordsLanguage:string
Defined in: packages/agentos/src/cognition/nlp/ai_utilities/StatisticalUtilityAI.ts:274
Not read: stop words follow a call's language, else defaultLanguage.
languageDetectionConfig?
optionallanguageDetectionConfig:object
Defined in: packages/agentos/src/cognition/nlp/ai_utilities/StatisticalUtilityAI.ts:308
Not read: detectLanguage() uses the package's built-in profiles.
nGramProfilePath?
optionalnGramProfilePath:string
readabilitySyllableAlgorithm?
optionalreadabilitySyllableAlgorithm:"regex_approx"|"dictionary_lookup"
Defined in: packages/agentos/src/cognition/nlp/ai_utilities/StatisticalUtilityAI.ts:312
Not read: syllables are counted by vowel groups.
resourcePath?
optionalresourcePath:string
Defined in: packages/agentos/src/cognition/nlp/ai_utilities/StatisticalUtilityAI.ts:271
The folder a relative path in customStopWordsPaths, sentimentConfig.lexiconPath or a call's
lexiconNameOrPath is read under. Naive Bayes models are kept under classifierConfig.naiveBayes.modelStoragePath.
Overrides
UtilityAIConfigBase.resourcePath
sentimentConfig?
optionalsentimentConfig:object
Defined in: packages/agentos/src/cognition/nlp/ai_utilities/StatisticalUtilityAI.ts:294
defaultLexiconLanguage?
optionaldefaultLexiconLanguage:string
The language a call that names none is scored in, and the language lexiconPath adds to. defaultLanguage unless given.
lexiconPath?
optionallexiconPath:string
A sentiment lexicon of your own: a JSON object of word to value, or one entry a line, the word, white space
and the value (an AFINN file). Its entries join the lexicon of defaultLexiconLanguage, each replacing the
built-in value of its word, and are read on that lexicon's scale: -5 to 5 where it is AFINN, -1 to 1 where it
is pattern or senticon. In a language natural has no lexicon for, they are the lexicon, read on AFINN's
scale. A relative path is read under resourcePath. A file that cannot be read or parsed logs a warning and
adds nothing.
summarizerConfig?
optionalsummarizerConfig:object
Defined in: packages/agentos/src/cognition/nlp/ai_utilities/StatisticalUtilityAI.ts:279
Not read: summarize() answers the first sentences of a text.
lexRank?
optionallexRank:object
lexRank.dampingFactor?
optionaldampingFactor:number
lexRank.epsilon?
optionalepsilon:number
lexRank.maxIterations?
optionalmaxIterations:number
lexRank.similarityThreshold?
optionalsimilarityThreshold:number
utilityId?
optionalutilityId:string
Defined in: packages/agentos/src/cognition/nlp/ai_utilities/IUtilityAI.ts:19
Unique identifier for this specific utility AI service instance.