Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ovos-markov-pipeline-plugin

An OVOS intent pipeline plugin that classifies utterances with an ensemble of per-intent Markov chains, scored by perplexity.

It trains one word-level Markov chain per intent from example utterances. At query time it computes the perplexity of the utterance under every model and picks the intent whose model is least "surprised": the lowest perplexity wins. Confidence comes from perplexity, so the plugin fits into the OVOS high, medium, and low confidence pipeline tiers.

Why a Markov pipeline?

Most OVOS intent matchers either pattern-match (Adapt, padacioso) or train a neural or SVM classifier (padatious, linha-fina). A Markov-chain language model sits in between. It is a lightweight statistical model that learns the word order of each intent's sample set. It trains in milliseconds, needs no GPU, and degrades gracefully with very few samples. It is a practical baseline for small skill sets and a useful comparison point against the other matchers.

Install

pip install ovos-markov-pipeline-plugin

Optional stemming support (recommended for non-English use):

pip install ovos-markov-pipeline-plugin[stem]

Quick example

Enable the pipeline in mycroft.conf:

{
  "intents": {
    "pipeline": [
      "ovos-markov-pipeline-plugin-high",
      "ovos-markov-pipeline-plugin-medium",
      "ovos-markov-pipeline-plugin-low"
    ]
  }
}

Skills register their intents over the bus exactly as they do for padatious. No skill-side changes are required.

Documentation

Full documentation lives in docs/:

License

Apache-2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovos_markov_pipeline_plugin-0.5.0a2.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_markov_pipeline_plugin-0.5.0a2-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file ovos_markov_pipeline_plugin-0.5.0a2.tar.gz.

File metadata

File hashes

Hashes for ovos_markov_pipeline_plugin-0.5.0a2.tar.gz
Algorithm Hash digest
SHA256 75d75ac2bec9bdab7bb9420fe47167d9f617dd9156079e71666383036fd26123
MD5 74ba38f977ace8fdb302e4aa4c36aba8
BLAKE2b-256 de78e7f85200b631909de1f37c2b8ed08484d5b8f8b1877622b38b9829c01672

See more details on using hashes here.

File details

Details for the file ovos_markov_pipeline_plugin-0.5.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_markov_pipeline_plugin-0.5.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 fe3b8b5dbfe9ab6979adb747cb5b53d9f81c72e94d35ab2624cee795ebcffb4a
MD5 c2cee464dc8ba449c993fbe109b04859
BLAKE2b-256 b4f9072e224d93255a9b2adf55ab4487e5f96c062a961f61857fbf706fa5835a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page