LanguageConfig
Bases: ModelConfigBase[LanguageConfig]
Configuration for the language emotion model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
granularity |
Optional[str]
|
The granularity at which to generate predictions.
Accepted values are |
None
|
identify_speakers |
Optional[bool]
|
Whether to return identifiers for speakers over time. If true, unique identifiers will be assigned to spoken words to differentiate different speakers. If false, all speakers will be tagged with an "unknown" ID. This configuration is only available for the batch API. |
None
|
sentiment |
Optional[Dict[str, Any]]
|
Configuration for Sentiment predictions. Sentiment prediction can be enabled by setting "sentiment": {}. Currently, Sentiment prediction cannot be further configured with any parameters. If missing or null, no sentiment predictions will be generated. |
None
|
toxicity |
Optional[Dict[str, Any]]
|
Configuration for Toxicity predictions. Toxicity prediction can be enabled by setting "toxicity": {}. Currently, Toxicity prediction cannot be further configured with any parameters. If missing or null, no toxicity predictions will be generated. |
None
|
Source code in hume/models/config/language_config.py
get_model_type()
classmethod
Get the configuration model type.
Returns:
Name | Type | Description |
---|---|---|
ModelType |
ModelType
|
Model type. |