Skip to content

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gadelrab committed Jun 19, 2017
1 parent 8e170e6 commit 8acec26
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 4 deletions.
44 changes: 41 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <arg> Use partial materialization cautiously, here the minimum support for exceptions
-de Decode the output
-dPM,--Debug_materialization <file> debug Materialization file
-en Encode the input
-ex Mine the output
-exMinSup <EXCEPTION_MIN_SUPP_RATIO> Exception Minimum support for the rule
-expOnly Output rules with exceptions only
-exRank,--exception_ranking <order> 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 <file> Input file inform of RDF or Integer transactions
-m,--mapping_file <file> Mapping RDF to Integer
-maxConf <MAX_CONF_RATIO> Maximum Confidence for the rule (default=1.0)
-minConf <MIN_CONF_RATIO> Minimum Confidence for the rule (default=0.001)
-minS <MIN_SUPP_RATIO> Minimum support for the rule(default=0.0001)
-o,--output <file> 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 <order> 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 <LIFT|CONF|>`

`sh run_IMDB_experiment.sh` fo IMDB experiments
`sh run_experiment.sh <sorting_Type[LIFT|CONF|]> <RM[LIFT|PNCONF|SUPP|CONF|PNCONV|PNJACC]>`

to Run IMDB experiments

`sh run_IMDB_experiment.sh <sorting_Type[LIFT|CONF|]> <RM[LIFT|PNCONF|SUPP|CONF|PNCONV|PNJACC]>`

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



Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/mpii/frequentrulesminning/MainCLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 8acec26

Please sign in to comment.