Commit d352f82a authored by Matic Perovšek's avatar Matic Perovšek

wrdf added weighting measure selection box

parent 9ebcdd9b
......@@ -90,14 +90,14 @@ def ilp_sdmaleph(input_dict):
def ilp_wordification(input_dict):
target_table = input_dict.get('target_table',None)
other_tables = input_dict.get('other_tables', None)
measure = input_dict.get('measure', None)
weighting_measure = input_dict.get('weighting_measure', 'tfidf')
context = input_dict.get('context', None)
word_att_length = int(input_dict.get('f_ngram_size', 1))
for _ in range(1):
wordification = Wordification(target_table,other_tables,context,word_att_length)
wordification.run(1)
wordification.calculate_tf_idfs(measure)
wordification.calculate_tf_idfs(weighting_measure)
#wordification.prune(50)
#wordification.to_arff()
......
......@@ -75,6 +75,23 @@
"uid": "b5eea832-1712-4db1-a677-92deca4e7a75"
}
},
{
"model": "workflows.abstractinput",
"fields": {
"widget": "63f936a1-6841-44c5-8340-8e4f3fef4f6a",
"name": "Weighting Measure",
"short_name": "wgh",
"default": "tfidf",
"description": "Term Weighting Measure",
"required": true,
"multi": false,
"parameter_type": "select",
"variable": "weighting_measure",
"parameter": true,
"order": 1,
"uid": "cc2a208c-bf6f-4f64-b51e-221c80366f8e"
}
},
{
"model": "workflows.abstractinput",
"fields": {
......@@ -112,8 +129,26 @@
"short_name": "arf",
"description": "Arff table with TF-IDF values",
"variable": "arff",
"order": 1,
"order": 2,
"uid": "703593f1-1cae-4dd0-96c0-47211d3f4dc1"
}
},
{
"model": "workflows.abstractoption",
"fields": {
"name": "TF-IDF",
"uid": "7a9b3f92-b830-49a9-8751-8f2acd133046",
"value": "tfidf",
"abstract_input": "cc2a208c-bf6f-4f64-b51e-221c80366f8e"
}
},
{
"model": "workflows.abstractoption",
"fields": {
"name": "Term Frequency",
"uid": "f85efec2-38ba-441d-995e-845c6c95723d",
"value": "tf",
"abstract_input": "cc2a208c-bf6f-4f64-b51e-221c80366f8e"
}
}
]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment