Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
should not be merged! instead #570 should be finished

ONLY FOR EASY TESTING
  • Loading branch information
JarbasAl committed Dec 6, 2024
1 parent d92f014 commit 817d2a8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ovos_core/intent_services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from ovos_utils.log import LOG, log_deprecation, deprecated
from ovos_utils.metrics import Stopwatch
from padacioso.opm import PadaciosoPipeline as PadaciosoService
from linha_fina.opm import LinhaFinaPipeline


class IntentService:
Expand All @@ -51,6 +52,7 @@ def __init__(self, bus, config=None):
self._adapt_service = None
self._padatious_service = None
self._padacioso_service = None
self._lf = None
self._fallback = None
self._converse = None
self._common_qa = None
Expand Down Expand Up @@ -88,7 +90,7 @@ def _load_pipeline_plugins(self):
if "padatious" not in self.config:
self.config["padatious"] = Configuration().get("padatious", {})
try:
if self.config["padatious"].get("disabled"):
if self.config["padatious"].get("disabled", True):
LOG.info("padatious forcefully disabled in config")
else:
from ovos_padatious.opm import PadatiousPipeline
Expand All @@ -102,6 +104,7 @@ def _load_pipeline_plugins(self):
self._common_qa = CommonQAService(self.bus, self.config.get("common_query"))
self._stop = StopService(self.bus)
self._ocp = OCPPipelineMatcher(self.bus, config=self.config.get("OCP", {}))
self._lf = LinhaFinaPipeline(self.bus, config=self.config.get("linha_fina", {}))

def update_skill_name_dict(self, message):
"""Messagebus handler, updates dict of id to skill name conversions."""
Expand Down Expand Up @@ -176,6 +179,9 @@ def get_pipeline(self, skips=None, session=None) -> Tuple[str, Callable]:
else:
padatious_matcher = self._padatious_service

# TODO - just for testing viability of Linha Fina as Padatious replacement, remove me
padatious_matcher = self._lf

matchers = {
"converse": self._converse.converse_with_skills,
"stop_high": self._stop.match_stop_high,
Expand Down

0 comments on commit 817d2a8

Please sign in to comment.