Commit ad82ce6f by Rajeev Uppala

duckling

parent 26631e33
Showing with 6 additions and 10 deletions
......@@ -7,15 +7,6 @@ from rasa_sdk.events import SlotSet
import re
from twilio.rest import Client
from datetime import datetime
import subprocess
import sys
try:
from dateutil.parser import parse
except ImportError:
subprocess.check_call([sys.executable, "-m", "pip", "install", 'dateutil'])
finally:
from dateutil.parser import parse
account_sid = "ACc460d692e5a467c60b352714b1416140"
auth_token = "bf2a890f36e3329b52d0516a14097623"
......@@ -170,7 +161,7 @@ class greet_primary_information(FormAction):
print(value)
print("OUT")
try:
matchedDate = str(parse(value, fuzzy=True))
matchedDate = value
# Since both the fields are populated, the form
# will no longer prompt the user separately for the end_date
print("Validate available time try")
......
......@@ -9,6 +9,11 @@ pipeline:
epochs: 400
- name: "CRFEntityExtractor"
case_sensitive: false
- name: "DucklingHTTPExtractor"
url: "http://localhost:8000"
dimensions: ["time","number"]
timezone: "Americar/Chicago"
# Configuration for Rasa Core.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment