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
1fa643af
authored
Jan 20, 2021
by
Rajeev Uppala
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
duckling extraction code added
parent
ad82ce6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
actions/actions.py
domain.yml
actions/actions.py
View file @
1fa643af
...
...
@@ -161,7 +161,9 @@ class greet_primary_information(FormAction):
print
(
value
)
print
(
"OUT"
)
try
:
matchedDate
=
value
timeentity
=
tracker
.
events
[
-
1
][
'parse_data'
][
'entities'
][
0
][
'value'
]
matchedDate
=
datetime
.
strptime
(
timeentity
,
"
%
Y-
%
m-
%
dT
%
H:
%
M:
%
S.000+00:00"
)
.
strftime
(
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S'
)
print
(
"matchedDate"
,
matchedDate
)
# Since both the fields are populated, the form
# will no longer prompt the user separately for the end_date
print
(
"Validate available time try"
)
...
...
@@ -187,8 +189,8 @@ class greet_primary_information(FormAction):
def
slot_mappings
(
self
)
->
Dict
[
Text
,
Union
[
Dict
,
List
[
Dict
]]]:
print
(
"type of self from text"
,
type
(
self
.
from_text
()))
print
(
"self from text"
,
self
.
from_text
())
#
print("type of self from text",type(self.from_text()))
#
print("self from text",self.from_text())
return
{
"askques"
:
[
self
.
from_intent
(
intent
=
[
"affirm"
],
value
=
"yes"
),
self
.
from_intent
(
intent
=
[
"deny"
],
value
=
"no"
),
self
.
from_text
()],
"email_mobile"
:
self
.
from_text
(),
...
...
domain.yml
View file @
1fa643af
...
...
@@ -28,6 +28,7 @@ entities:
-
mobilenumber
-
response
-
jobtype
-
time
forms
:
-
greet_primary_information_form
...
...
@@ -93,8 +94,11 @@ slots:
refferal_yes_info
:
type
:
unfeaturized
time
:
type
:
unfeaturized
templates
:
utter_slots_datetime
:
-
custom
:
...
...
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