Skip to content

Commit

Permalink
fix/sklearn_import (#530)
Browse files Browse the repository at this point in the history
when ovos-classifiers was made optional this import was missed
  • Loading branch information
JarbasAl authored Aug 5, 2024
1 parent e2c2514 commit baf64b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ovos_core/intent_services/ocp_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from ovos_utils.messagebus import FakeBus
from ovos_workshop.app import OVOSAbstractApplication
from padacioso import IntentContainer
from sklearn.pipeline import FeatureUnion

from ovos_plugin_manager.ocp import available_extractors
from ovos_plugin_manager.templates.pipeline import IntentMatch
Expand Down Expand Up @@ -1366,6 +1365,7 @@ def label2media(label: str) -> MediaType:

def transform(self, X):
if self.clf_feats:
from sklearn.pipeline import FeatureUnion
vec = FeatureUnion([
("kw", self.ocp_keywords),
("clf", self.clf_feats)
Expand Down

0 comments on commit baf64b0

Please sign in to comment.