mltk.utils.audio_dataset_generator.Keyword¶
- class Keyword[source]¶
Keyword to generate
Properties
Additional aliases for the base keyword
The maximum number of samples to generate for this keyword This is only used if the
truncate
argument oflist_configurations()
istrue`
The base keyword
Methods
__init__
Return the base keyword and all its aliases as a list of strings
Return number of occurrences of value.
Return first index of value.
- value: str¶
The base keyword
- aliases: List[str]¶
Additional aliases for the base keyword
- max_count: int¶
The maximum number of samples to generate for this keyword This is only used if the
truncate
argument oflist_configurations()
istrue`
- as_list()[source]¶
Return the base keyword and all its aliases as a list of strings
Note
If the base keyword (e.g.
value
) starts with an underscore, then it is omitted from the list- Return type:
List
[str
]
- count(value, /)¶
Return number of occurrences of value.
- index(value, start=0, stop=sys.maxsize, /)¶
Return first index of value.
Raises ValueError if the value is not present.