diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-05-08 14:48:20 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-05-08 14:48:20 +0200 |
commit | 3fe8a116f1255eedd4628d68d9a6ae16064b0d7c (patch) | |
tree | c76223190c8b89463950702574f1dcfd0314d037 | |
parent | d254c911b14a097db0c882e7b485f88cf314076e (diff) |
Added metadata: minfreq and nr_hits
-rw-r--r-- | fminer.rb | 11 | ||||
m--------- | last-utils | 0 |
2 files changed, 8 insertions, 3 deletions
@@ -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) diff --git a/last-utils b/last-utils -Subproject 8a3dd9bb550f0ea264c2f4e844f664f0a42ca16 +Subproject efcc3f41dd9e2f590a1520dfee3bf709120b2e4 |