JustinaPetr / Weatherbot_Tutorial

275 stars 448 forks source link

Problem with entities extraction #79

Closed OmarDhouib95 closed 5 years ago

OmarDhouib95 commented 5 years ago

Hi, when following the tutorial and the code, some entities location are not extracted

label.py:151: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use array.size > 0 to check that an array is not empty. if diff: {'intent': {'name': 'inform', 'confidence': 0.8460471412568782}, 'entities': [], 'intent_ranking': [{'name': 'inform', 'confidence': 0.8460471412568782}, {'name': 'goodbye', 'confidence': 0.08255430899471132}, {'name': 'greet', 'confidence': 0.07139854974841049}], 'text': 'I am planning my holiday to Lithuania. I wonder what is the weather out there.'}

What is the problem and how can I fix it? Thank you in advance.

OmarDhouib95 commented 5 years ago

my code mistake