OpenVoiceOS / OpenVoiceOS/padacioso

feature - extend api

Open
#16 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
1
Forks
6
Avg merge
1d 8h
Merged PRs (30d)
9

Description

extend engine to support features from Jurebes

# fuzzy matching
engine.enable_fuzzy()
engine.disable_fuzzy()

# temporarily disable a intent
engine.detach_intent("name")
engine.reatach_intent("name")

# force correct predictions
engine.exclude_keywords("name", ["laugh"])
engine.exclude_keywords("hello", ["laugh"])
print(engine.calc_intent("make me laugh"))
# IntentMatch(intent_name='joke', confidence=1.0, entities={})

# inject context
engine.set_context("joke", "joke_type", "chuck_norris")  # if a value is passed it will populate entities
print(engine.calc_intent("tell me a chuch norris joke")) 
# IntentMatch(intent_name='joke', confidence=0.9707841337857908, entities={'joke_type': 'chuck_norris'})

# require context
engine.require_context("joke", "joke_type")
engine.unrequire_context("joke", "joke_type")

# exclude intent matches based on context
engine.exclude_context("hello", "said_hello")
engine.set_context("hello", "said_hello")  # now wont predict hello intent

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the listed Jurebes advanced-usage features with padacioso's existing engine API, focusing on fuzzy matching, intent attachment, keyword exclusion, and context handling. The issue names no files or tests; done would mean the requested engine operations are supported and produce the shown intent results.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.