Error with UnexpecTEDIntentPolicy2

Hello,

I’m using the default configuration, but I’m getting the following error when I run rasa train:

Traceback (most recent call last):
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/engine/graph.py", line 464, in _
_call__
    output = self._fn(self._component, **run_kwargs)
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/core/policies/ted_policy.py", li
ne 731, in train
    self.run_training(model_data, label_ids)
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/core/policies/unexpected_intent_
policy.py", line 486, in run_training
    super().run_training(model_data, label_ids)
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/core/policies/ted_policy.py", li
ne 651, in run_training
    self.model = self.model_class()(
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/core/policies/ted_policy.py", li
ne 1221, in __init__
    self._prepare_layers()
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/core/policies/ted_policy.py", li
ne 1247, in _prepare_layers
    self._prepare_input_layers(
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/core/policies/ted_policy.py", li
ne 1302, in _prepare_input_layers
    ] = rasa_layers.RasaSequenceLayer(
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/utils/tensorflow/rasa_layers.py"
, line 767, in __init__
    self.FEATURE_COMBINING: RasaFeatureCombiningLayer(
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/utils/tensorflow/rasa_layers.py"
, line 412, in __init__
    self._prepare_sparse_dense_concat_layers(attribute, attribute_signature, config)
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/utils/tensorflow/rasa_layers.py"
, line 449, in _prepare_sparse_dense_concat_layers
    ] = ConcatenateSparseDenseFeatures(
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/utils/tensorflow/rasa_layers.py"
, line 230, in __init__
    self.output_units = self._calculate_output_units(
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/utils/tensorflow/rasa_layers.py"
, line 290, in _calculate_output_units
    [
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/utils/tensorflow/rasa_layers.py"
, line 291, in <listcomp>
    config[DENSE_DIMENSION][attribute]
KeyError: 'action_text'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/tlabruna/anaconda3/rasaProva/bin/rasa", line 8, in <module>
    sys.exit(main())
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/__main__.py", line 110, in main
    cmdline_arguments.func(cmdline_arguments)
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/cli/train.py", line 62, in <lamb
da>
    train_parser.set_defaults(func=lambda args: run_training(args, can_exit=True))
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/cli/train.py", line 94, in run_t
raining
    training_result = train_all(
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/api.py", line 105, in train
    return train(
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/model_training.py", line 160, in
 train
    return _train_graph(
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/model_training.py", line 234, in
 _train_graph
    trainer.train(
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/engine/training/graph_trainer.py
", line 105, in train
    graph_runner.run(inputs={PLACEHOLDER_IMPORTER: importer})   
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/engine/runner/dask.py", line 101
, in run
    dask_result = dask.get(run_graph, run_targets)
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/dask/local.py", line 552, in get_sync
    return get_async(
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/dask/local.py", line 495, in get_async
    for key, res_info, failed in queue_get(queue).result():
  File "/home/tlabruna/anaconda3/lib/python3.9/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/home/tlabruna/anaconda3/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/dask/local.py", line 537, in submit
    fut.set_result(fn(*args, **kwargs))
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/dask/local.py", line 233, in batch_execute_tasks
    return [execute_task(*a) for a in it]
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/dask/local.py", line 233, in <listcomp>
    return [execute_task(*a) for a in it]
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/dask/local.py", line 224, in execute_task
    result = pack_exception(e, dumps)
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/dask/local.py", line 219, in execute_task
    result = _execute_task(task, data)
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/dask/core.py", line 119, in _execute_task
    return func(*(_execute_task(a, cache) for a in args))
  File "/home/tlabruna/anaconda3/rasaProva/lib/python3.9/site-packages/rasa/engine/graph.py", line 471, in __call__
    raise GraphComponentException(
rasa.engine.exceptions.GraphComponentException: Error running graph component for node train_UnexpecTEDIntentPolicy2.

Does anybody know how to help me?

Thank you, Tiziano