Closed raymundlabs closed 5 years ago
hey @raymund07 ,were you able to solve this? I am facing the same error.
I suppose you both are using Rasa Core version >= 0.11. In that case, please use the code from the directory which contains the code compatible with the latest versions of Rasa NLU and Rasa Core. That should solve the issue.
Rasa core version : 0.14.0a1 Rasa nlu version : 0.14.4
For newer versions of rasa nlu and rasa core. Can we follow the same steps followed in your video tutorial. Because I have noticed that in the older version of your video tutorial. I can see in the online_train.py file doesn't have action_endpoint but in the new version of your online train file. It has action_endpoint. As you told, I have tried using the code from your repository. When I am using that updated code. I am getting this error.
Traceback (most recent call last):
File "training_online.py", line 35, in
Please help me. Let me know where I am going wrong. Thanks.
The content of the online_train.py file :
from future import absolute_import from future import division from future import print_function from future import unicode_literals
import logging
from rasa_core.agent import Agent from rasa_core.policies.keras_policy import KerasPolicy from rasa_core.policies.memoization import MemoizationPolicy from rasa_core.interpreter import RasaNLUInterpreter from rasa_core.train import interactive from rasa_core.utils import EndpointConfig
logger = logging.getLogger(name)
def run_weather_online(interpreter,
domain_file="weather_domain.yml",
training_data_file='data/stories.md'):
action_endpoint = EndpointConfig(url="http://localhost:5055/webhook")
agent = Agent(domain_file,
policies=[MemoizationPolicy(max_history=2), KerasPolicy(max_history=3, epochs=3, batch_size=50)],
interpreter=interpreter,
action_endpoint=action_endpoint)
data = agent.load_data(training_data_file)
agent.train(data)
interactive.run_interactive_learning(agent, training_data_file)
return agent
if name == 'main': logging.basicConfig(level="INFO") nlu_interpreter = RasaNLUInterpreter('./models/nlu/default/weathernlu') run_weather_online(nlu_interpreter)
I'm following up your tutorial but I'm getting this error.
(tensorflow_gpuenv) F:\global_2019\chatbot\agent01>python train_online.py Traceback (most recent call last): File "train_online.py", line 9, in
from rasa_core.channels.console import ConsoleInputChannel
ImportError: cannot import name 'ConsoleInputChannel'
Anyone solve this?