summaryrefslogtreecommitdiff
path: root/fminer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'fminer.rb')
-rw-r--r--fminer.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/fminer.rb b/fminer.rb
index 8559628..3c282c8 100644
--- a/fminer.rb
+++ b/fminer.rb
@@ -186,7 +186,10 @@ post '/fminer/bbrc/?' do
OT.hasSource => url_for('/fminer/bbrc', :full),
OT.parameters => [
{ DC.title => "dataset_uri", OT.paramValue => params[:dataset_uri] },
- { DC.title => "prediction_feature", OT.paramValue => params[:prediction_feature] }
+ { DC.title => "prediction_feature", OT.paramValue => params[:prediction_feature] },
+ { DC.title => "min_frequency", OT.paramValue => fminer.minfreq },
+ { DC.title => "nr_hits", OT.paramValue => (params[:nr_hits] == "true" ? "true" : "false") }
+
]
})
feature_dataset.save(@subjectid)
@@ -455,8 +458,10 @@ post '/fminer/last/?' do
OT.hasSource => url_for('/fminer/last', :full),
OT.parameters => [
{ DC.title => "dataset_uri", OT.paramValue => params[:dataset_uri] },
- { DC.title => "prediction_feature", OT.paramValue => params[:prediction_feature] }
- ]
+ { DC.title => "prediction_feature", OT.paramValue => params[:prediction_feature] },
+ { DC.title => "min_frequency", OT.paramValue => fminer.minfreq },
+ { DC.title => "nr_hits", OT.paramValue => (params[:nr_hits] == "true" ? "true" : "false") }
+ ]
})
feature_dataset.save(@subjectid)