Make Domain accessible in NLU Pipeline #4285
Labels
area:rasa-oss 🎡
Anything related to the open source Rasa framework
type:enhancement ✨
Additions of new features or changes to existing ones, should be doable in a single PR
Description of Problem:
Currently the
domain.yml
file is read and made accessible only in the Core pipeline. As we include more features into the complete stack, there may be some which do not follow the clear boundary between NLU and Core. One such example feature is Supervised Response Selector. The particular part where the domain file is needed is described in this comment .There may be more such use cases where this might be necessary.
Overview of the Solution:
domain.py
outside ofrasa.core
since it would be shared between NLU and Core._train_core_with_validated_data()
function we can load it insidetrain_nlu_with_validated_data()
and pass it torasa.nlu.train()
function.Trainer
andTrainingData
could potentially need access to theDomain
instance.Blockers (if relevant):
Any ideas?
Definition of Done:
The text was updated successfully, but these errors were encountered: