You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: example/Async_API/Text_API/process_text.py
+31
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,29 @@
1
1
importsymbl
2
2
3
+
#you can add the different vocabulary, which you would like to track
4
+
trackers= [{
5
+
"name": "text_tracker",
6
+
"vocabulary": [
7
+
"white",
8
+
"issues",
9
+
"vaccination"
10
+
]
11
+
}]
3
12
payload= {
13
+
4
14
"name": "TextAPI", # you can update the name of the conversation
15
+
16
+
#"trackers": trackers, #To detect the trackers
17
+
18
+
#"detectEntities": "true", #To get the entities
19
+
20
+
#To define Custom entities
21
+
"entities": [
22
+
{
23
+
"customType": "identify_org",
24
+
"text": "platform"
25
+
}
26
+
],
5
27
"messages": [
6
28
{
7
29
"payload": {"content": "Hi Anthony. I saw your complaints about bad call reception on your mobile phone. Can I know what issues you are currently facing?"},
0 commit comments