It give an error if I put it the print inside the process method.
self.data
Traceback (most recent call last):
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/bin/rasa", line 8, in <module>
sys.exit(main())
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/__main__.py", line 117, in main
cmdline_arguments.func(cmdline_arguments)
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/cli/train.py", line 59, in <lambda>
train_parser.set_defaults(func=lambda args: run_training(args, can_exit=True))
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/cli/train.py", line 91, in run_training
training_result = train_all(
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/api.py", line 109, in train
return rasa.utils.common.run_in_loop(
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/utils/common.py", line 296, in run_in_loop
result = loop.run_until_complete(f)
File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/model_training.py", line 108, in train_async
return await _train_async_internal(
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/model_training.py", line 288, in _train_async_internal
await _do_training(
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/model_training.py", line 352, in _do_training
await _train_core_with_validated_data(
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/model_training.py", line 549, in _train_core_with_validated_data
await rasa.core.train.train(
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/core/train.py", line 70, in train
agent.train(training_data, **additional_arguments)
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/core/agent.py", line 753, in train
self.policy_ensemble.train(
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/core/policies/ensemble.py", line 206, in train
policy.train(
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/core/policies/ted_policy.py", line 692, in train
model_data, label_ids = self._prepare_for_training(
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/core/policies/ted_policy.py", line 586, in _prepare_for_training
tracker_state_features, label_ids, entity_tags = self._featurize_for_training(
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/core/policies/policy.py", line 191, in _featurize_for_training
state_features, label_ids, entity_tags = self.featurizer.featurize_trackers(
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/core/featurizers/tracker_featurizers.py", line 382, in featurize_trackers
tracker_state_features = self._featurize_states(trackers_as_states, interpreter)
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/core/featurizers/tracker_featurizers.py", line 103, in _featurize_states
return [
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/core/featurizers/tracker_featurizers.py", line 104, in <listcomp>
[
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/core/featurizers/tracker_featurizers.py", line 105, in <listcomp>
self.state_featurizer.encode_state(state, interpreter)
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/core/featurizers/single_state_featurizer.py", line 281, in encode_state
self._extract_state_features(sub_state, interpreter, sparse=True)
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/core/featurizers/single_state_featurizer.py", line 249, in _extract_state_features
parsed_message = interpreter.featurize_message(message)
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/core/interpreter.py", line 159, in featurize_message
result = self.interpreter.featurize_message(message)
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/nlu/model.py", line 491, in featurize_message
component.process(message, **self.context)
File "/home/lenovo/Desktop/Barham/Custom_components/custom_com_env/lib/python3.8/site-packages/rasa/nlu/extractors/custom_extractors.py", line 97, in process
print(self.data)
AttributeError: 'maha' object has no attribute 'data'