From 8acec26f460f727ebb08671cc72c8a9fdbef2a64 Mon Sep 17 00:00:00 2001 From: gadelrab Date: Mon, 19 Jun 2017 20:56:10 +0200 Subject: [PATCH] update scripts --- README.md | 44 +++++++++++++++++-- .../de/mpii/frequentrulesminning/MainCLI.java | 2 +- 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 48a8991..c6d6137 100644 --- a/README.md +++ b/README.md @@ -31,14 +31,52 @@ To install the project run scripts `mvn install -Dmaven.test.skip=true` +**Running** + +To mine rules with or without exceptions use `mine_riles.sh` use the following options + +``` +usage: mine_rules.sh + -cPM,--cautious-materialization Use partial materialization cautiously, here the minimum support for exceptions + -de Decode the output + -dPM,--Debug_materialization debug Materialization file + -en Encode the input + -ex Mine the output + -exMinSup Exception Minimum support for the rule + -expOnly Output rules with exceptions only + -exRank,--exception_ranking Exception ranking + method(LIFT|PNCONF|SUPP|CONF|PNCONV|PNJACC) + -f1,--first_filter first filter based on size (4 body atoms at most, 1 head and Max conf) + -f2,--second_filter Second filter based on type hierarchy + -i,--input Input file inform of RDF or Integer transactions + -m,--mapping_file Mapping RDF to Integer + -maxConf Maximum Confidence for the rule (default=1.0) + -minConf Minimum Confidence for the rule (default=0.001) + -minS Minimum support for the rule(default=0.0001) + -o,--output Input file inform of RDF or Integer transactions + -oDLV,--output_DLV Export rules as PrASP + -oDLV_CONFLICT,--export_DLVConflict Export rules to count conflict to file + -oPrASP,--output_PrASP Export rules as PrASP + -pm,--materialization Use partial materialization + -PMo,--materialization_order Materialize with order. Only useful with Materialization + -s,--sorting Output sorting(CONF|HEAD|BODY|LIFT|HEAD_CONF|HEAD_LIFT|NEW_LIFT|CONV) + -stats,--export_statistics Export statistics to file + -w,--weighted_transactions Count transactions with weights. Only useful with Materialization + ``` + + + **Running Experiments:** To Run YAGO experiments -`sh run_experiment.sh ` -`sh run_IMDB_experiment.sh` fo IMDB experiments +`sh run_experiment.sh ` + +to Run IMDB experiments + +`sh run_IMDB_experiment.sh ` -Note: fix the directories inside the scripst to point to facts_to_mine.tsv file +Note: fix the directories inside the scripts to point to facts_to_mine.tsv file diff --git a/src/main/java/de/mpii/frequentrulesminning/MainCLI.java b/src/main/java/de/mpii/frequentrulesminning/MainCLI.java index 15c01bb..cac5888 100644 --- a/src/main/java/de/mpii/frequentrulesminning/MainCLI.java +++ b/src/main/java/de/mpii/frequentrulesminning/MainCLI.java @@ -270,7 +270,7 @@ public void run(CommandLine cmd) throws Exception{ public static void main(String [] args) throws Exception { - + args=new String[]{"-h"}; MainCLI instance=new MainCLI(); instance.defineOptions(); instance.run(instance.parse(args));