Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Imène Lajili
clowdflows
Commits
3990fb64
Commit
3990fb64
authored
Mar 24, 2015
by
vpodpecan
Browse files
new MUSE widgets + fixes
parent
95bd612d
Changes
5
Hide whitespace changes
Inline
Side-by-side
workflows/MUSE/library.py
View file @
3990fb64
...
...
@@ -114,7 +114,7 @@ def MUSE_string_to_file_finished(postdata, input_dict, output_dict):
DEVSERVER
=
sys
.
argv
[
1
].
startswith
(
'runserver'
)
else
:
DEVSERVER
=
False
fqdn
=
'127.0.0.1:'
+
port
if
DEVSERVER
else
getfqdn
()
fqdn
=
'127.0.0.1:'
+
str
(
port
)
if
DEVSERVER
else
getfqdn
()
fqdn
=
'http://'
+
fqdn
...
...
workflows/MUSE_v3/library.py
View file @
3990fb64
...
...
@@ -111,6 +111,19 @@ def MUSE_event_temprel_detection(input_dict):
#end
def
MUSE_PG_preprocessing
(
input_dict
):
text
=
input_dict
[
'text'
]
url
=
input_dict
[
'url'
]
import
socket
socket
.
setdefaulttimeout
(
None
)
cli
=
JSONWSPClient
(
url
)
result
=
cli
.
PG_preprocessing
(
text
=
text
)
result
=
result
.
response_dict
[
'result'
]
return
{
'structure'
:
result
[
0
],
'tokens'
:
result
[
1
]}
#end
...
...
workflows/MUSE_v3/package_data/categories/3b5afcdf-231b-4484-8d0e-6a23852e0e95.json
0 → 100644
View file @
3990fb64
{
"model"
:
"workflows.category"
,
"fields"
:
{
"name"
:
"NLP components (PG)"
,
"parent"
:
"853d1bb3-3710-4fae-a95a-2955abd7b7fe"
,
"order"
:
3
,
"uid"
:
"3b5afcdf-231b-4484-8d0e-6a23852e0e95"
}
}
\ No newline at end of file
workflows/MUSE_v3/package_data/categories/c0ecc61e-3fe1-4681-8ed7-8d45e796d9d0.json
View file @
3990fb64
...
...
@@ -3,7 +3,7 @@
"fields"
:
{
"name"
:
"NLP components"
,
"parent"
:
"853d1bb3-3710-4fae-a95a-2955abd7b7fe"
,
"order"
:
1
,
"order"
:
2
,
"uid"
:
"c0ecc61e-3fe1-4681-8ed7-8d45e796d9d0"
}
}
\ No newline at end of file
workflows/MUSE_v3/package_data/widgets/352b025c-418f-41da-8a20-4adfc9cd6d16.json
0 → 100644
View file @
3990fb64
[
{
"model"
:
"workflows.abstractwidget"
,
"fields"
:
{
"category"
:
"3b5afcdf-231b-4484-8d0e-6a23852e0e95"
,
"treeview_image"
:
""
,
"uid"
:
"352b025c-418f-41da-8a20-4adfc9cd6d16"
,
"windows_queue"
:
false
,
"package"
:
"MUSE_v3"
,
"interaction_view"
:
""
,
"has_progress_bar"
:
false
,
"image"
:
""
,
"description"
:
"This function is used to tokenise text and detect information about its structure"
,
"static_image"
:
""
,
"action"
:
"MUSE_PG_preprocessing"
,
"visualization_view"
:
""
,
"streaming_visualization_view"
:
""
,
"post_interact_action"
:
""
,
"wsdl_method"
:
""
,
"wsdl"
:
""
,
"interactive"
:
false
,
"is_streaming"
:
false
,
"order"
:
1
,
"name"
:
"PG preprocessing"
}
},
{
"model"
:
"workflows.abstractinput"
,
"fields"
:
{
"widget"
:
"352b025c-418f-41da-8a20-4adfc9cd6d16"
,
"name"
:
"Service url"
,
"short_name"
:
"url"
,
"default"
:
"http://grom.ijs.si:8001/MUSE_services_V3/jsonwsp/description"
,
"description"
:
"URL of the MUSE service"
,
"required"
:
true
,
"multi"
:
false
,
"parameter_type"
:
"text"
,
"variable"
:
"url"
,
"parameter"
:
true
,
"order"
:
1
,
"uid"
:
"cd0de070-ce48-48b1-8a5a-addeac39cd40"
}
},
{
"model"
:
"workflows.abstractinput"
,
"fields"
:
{
"widget"
:
"352b025c-418f-41da-8a20-4adfc9cd6d16"
,
"name"
:
"Raw text"
,
"short_name"
:
"txt"
,
"default"
:
""
,
"description"
:
"Input text file"
,
"required"
:
true
,
"multi"
:
false
,
"parameter_type"
:
null
,
"variable"
:
"text"
,
"parameter"
:
false
,
"order"
:
1
,
"uid"
:
"f608f877-4e65-42e0-ae09-e807f1639830"
}
},
{
"model"
:
"workflows.abstractoutput"
,
"fields"
:
{
"widget"
:
"352b025c-418f-41da-8a20-4adfc9cd6d16"
,
"name"
:
"Tokens"
,
"short_name"
:
"tok"
,
"description"
:
"Tokenised text"
,
"variable"
:
"tokens"
,
"order"
:
1
,
"uid"
:
"401377a7-4808-4679-bda7-b230809d9780"
}
},
{
"model"
:
"workflows.abstractoutput"
,
"fields"
:
{
"widget"
:
"352b025c-418f-41da-8a20-4adfc9cd6d16"
,
"name"
:
"Text structure"
,
"short_name"
:
"tsr"
,
"description"
:
"Recognised text structure"
,
"variable"
:
"structure"
,
"order"
:
1
,
"uid"
:
"bac34128-4b42-4cb4-a9ac-8c8bf7f94d98"
}
}
]
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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