Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clowdflows
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Alain Shakour
clowdflows
Commits
6df79643
Commit
6df79643
authored
Jan 20, 2014
by
Janez K
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prestavil webservise
parent
b6cb4fcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
workflows/streaming/library.py
workflows/streaming/library.py
+18
-3
No files found.
workflows/streaming/library.py
View file @
6df79643
...
...
@@ -216,7 +216,7 @@ def streaming_tweet_sentiment_service(input_dict,widget,stream=None):
from
pysimplesoap.client
import
SoapClient
,
SoapFault
import
pysimplesoap
client
=
SoapClient
(
location
=
"http://
batman.ijs.si:8008/"
,
action
=
'http://batman.ijs.si:800
8/'
,
namespace
=
"http://example.com/tweetsentiment.wsdl"
,
soap_ns
=
'soap'
,
trace
=
False
,
ns
=
False
)
client
=
SoapClient
(
location
=
"http://
95.87.154.167:8088/"
,
action
=
'http://95.87.154.167:808
8/'
,
namespace
=
"http://example.com/tweetsentiment.wsdl"
,
soap_ns
=
'soap'
,
trace
=
False
,
ns
=
False
)
pysimplesoap
.
client
.
TIMEOUT
=
60
list_of_tweets
=
input_dict
[
'ltw'
]
...
...
@@ -245,11 +245,26 @@ def streaming_tweet_sentiment_service(input_dict,widget,stream=None):
return
output_dict
def
streaming_triplet_extraction
(
input_dict
,
widget
,
stream
=
None
):
from
pysimplesoap.client
import
SoapClient
,
SoapFault
import
pysimplesoap
client
=
SoapClient
(
location
=
"http://95.87.154.167:8008/"
,
action
=
'http://95.87.154.167:8008/'
,
namespace
=
"http://example.com/tweetsentiment.wsdl"
,
soap_ns
=
'soap'
,
trace
=
False
,
ns
=
False
)
pysimplesoap
.
client
.
TIMEOUT
=
36000
text
=
input_dict
[
'text'
]
response
=
client
.
TripletExtraction
(
text
=
text
)
output_dict
=
[]
output_dict
[
'triplets'
]
=
str
(
reponse
.
TripletExtractionResult
)
return
output_dict
def
streaming_active_sentiment_analysis
(
input_dict
,
widget
,
stream
=
None
):
import
pickle
from
pysimplesoap.client
import
SoapClient
,
SoapFault
import
pysimplesoap
client
=
SoapClient
(
location
=
"http://
batman.ijs.si:8008/"
,
action
=
'http://batman.ijs.si:800
8/'
,
namespace
=
"http://example.com/tweetsentiment.wsdl"
,
soap_ns
=
'soap'
,
trace
=
False
,
ns
=
False
)
client
=
SoapClient
(
location
=
"http://
95.87.154.167:8088/"
,
action
=
'http://95.87.154.167:808
8/'
,
namespace
=
"http://example.com/tweetsentiment.wsdl"
,
soap_ns
=
'soap'
,
trace
=
False
,
ns
=
False
)
pysimplesoap
.
client
.
TIMEOUT
=
600
list_of_tweets
=
input_dict
[
'ltw'
]
...
...
@@ -287,7 +302,7 @@ def streaming_sentiment_analysis(input_dict,widget,stream=None):
from
pysimplesoap.client
import
SoapClient
,
SoapFault
import
pysimplesoap
client
=
SoapClient
(
location
=
"http://
batman.ijs.si:8008/"
,
action
=
'http://batman.ijs.si:800
8/'
,
namespace
=
"http://example.com/tweetsentiment.wsdl"
,
soap_ns
=
'soap'
,
trace
=
False
,
ns
=
False
)
client
=
SoapClient
(
location
=
"http://
95.87.154.167:8088/"
,
action
=
'http://95.87.154.167:808
8/'
,
namespace
=
"http://example.com/tweetsentiment.wsdl"
,
soap_ns
=
'soap'
,
trace
=
False
,
ns
=
False
)
pysimplesoap
.
client
.
TIMEOUT
=
60
try
:
...
...
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