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
49e91d7d
Commit
49e91d7d
authored
Dec 24, 2015
by
Janez K
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added a try except to summarization
parent
a51e0e62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
workflows/streaming/library.py
workflows/streaming/library.py
+6
-3
No files found.
workflows/streaming/library.py
View file @
49e91d7d
...
...
@@ -330,9 +330,12 @@ def streaming_triplet_extraction(input_dict,widget,stream=None):
def
streaming_summarize_url
(
input_dict
,
widget
,
stream
=
None
):
import
pyteaser
summaries
=
pyteaser
.
SummarizeUrl
(
input_dict
[
'url'
])
output_dict
=
{}
output_dict
[
'summary'
]
=
" "
.
join
(
summaries
)
try
:
summaries
=
pyteaser
.
SummarizeUrl
(
input_dict
[
'url'
])
output_dict
=
{}
output_dict
[
'summary'
]
=
" "
.
join
(
summaries
)
except
:
output_dict
[
'summary'
]
=
''
return
output_dict
def
streaming_get_article_text
(
input_dict
,
widget
,
stream
=
None
):
...
...
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