This release is a pre-release and may not be stable for production use.
ovos-utterance-normalizer
ovos-utterance-normalizer is an OVOS plugin that
normalizes utterances before intent parsing. It expands contractions, converts spoken
numbers to digits, strips punctuation, and applies other language-specific cleanup so
that intent parsers get a consistent input.
The plugin also fixes text encoding errors with python-ftfy.
It is enabled by default in mycroft.conf.
Install
pip install ovos-utterance-normalizer
Usage
ovos-utterance-normalizer registers as an
OVOS PHAL opm.transformer.text
plugin, named ovos-utterance-normalizer. ovos-core
loads it automatically when it is installed and enabled in the configuration.
For each utterance, the plugin produces up to three variants: the utterance with contractions expanded, the original utterance, and the normalized utterance. Punctuation is stripped from each variant, and duplicates are removed while keeping the original order.
Supported configuration options, under the plugin name in mycroft.conf:
| Option | Default | Description |
|---|---|---|
lang |
en-us |
Fallback language, used when no language is given in the utterance context |
fix_encoding_errors |
true |
Fix encoding errors with ftfy before normalizing |
strip_punctuation |
true |
Strip punctuation from each output variant |
Normalization is language-specific. English, Portuguese, Ukrainian, Catalan, Czech, Azerbaijani, Russian, and German each have a dedicated normalizer. Other languages fall back to the generic normalizer.
Related projects
- ovos-plugin-manager, which loads
and runs this plugin as an
opm.transformer.texttransformer. - ovos-config, which ships the default
mycroft.confthat enables this plugin. - ovos-core, the assistant runtime that calls transformer plugins before intent parsing.
License
Apache-2.0
Metadata
Release files for ovos-utterance-normalizer 0.2.6a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ovos_utterance_normalizer-0.2.6a1.tar.gz | 28.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_utterance_normalizer-0.2.6a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.2 kB
Release files / ovos_utterance_normalizer-0.2.6a1.tar.gz
| Download URL | ovos_utterance_normalizer-0.2.6a1.tar.gz |
|---|---|
| Size | 28.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba4709df91df16d9b6d47cd0a57635f3b03b04665e3447345908c06ef9f85353
|
|
BLAKE2b-256 checksum How to use checksums |
da9f54d8194c2af1c0b55843a82f76d582e8088399aa6ebeac58f5c46fddcc74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / ovos_utterance_normalizer-0.2.6a1-py3-none-any.whl
| Download URL | ovos_utterance_normalizer-0.2.6a1-py3-none-any.whl |
|---|---|
| Size | 33.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce630b29cc680664a0b6c9b0bdce58213318ec8ed5d17755a890adc38e229ff1
|
|
BLAKE2b-256 checksum How to use checksums |
0407339a2b93e8aa4bf8005de3bcc6ee4a8ca7b471b8d81a367ef27fa2c2bc40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for ovos-utterance-normalizer 0.2.6a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.