Skip to content

Commit

Permalink
fix:domain engine from config
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Jan 29, 2025
1 parent 4a51ef5 commit 5d07bb2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ovos_padatious/opm.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,10 @@ def __init__(self, bus: Optional[Union[MessageBusClient, FakeBus]] = None,
self.conf_high = self.config.get("conf_high") or 0.95
self.conf_med = self.config.get("conf_med") or 0.8
self.conf_low = self.config.get("conf_low") or 0.5
if engine_class is None and self.config.get("domain_engine"):
engine_class = DomainIntentContainer

engine_class = engine_class or DomainIntentContainer if self.config.get("domain_engine") else IntentContainer
LOG.info(f"Padatious class: {engine_class.__name__}")

self.remove_punct = self.config.get("cast_to_ascii", False)
use_stemmer = self.config.get("stem", False)
self.engine_class = engine_class or IntentContainer
Expand Down

0 comments on commit 5d07bb2

Please sign in to comment.