Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Surya Narayana
/
ai-workforce-rasa
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ad82ce6f
authored
Jan 20, 2021
by
Rajeev Uppala
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
duckling
parent
26631e33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
actions/actions.py
config.yml
actions/actions.py
View file @
ad82ce6f
...
...
@@ -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"
)
...
...
config.yml
View file @
ad82ce6f
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment