Skip to content

Commit 20b7289

Browse files
authored
updated readme
1 parent 8d6f634 commit 20b7289

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

README.md

+20-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
Mandolin
1+
![logo](https://github.com/mommi84/Mandolin/raw/master/mandolin-400px.png "Mandolin logo")
2+
3+
MANDOLIN
24
========
35

4-
*Markov Logic Networks for Discovering Links.*
6+
*Markov Logic Networks for the Discovery of Links.*
57

68
## Requirements
79

810
* Java 1.8+
9-
* Maven
1011
* PostgreSQL 9.4.x
11-
* Gurobi solver - [Get academic license](http://www.gurobi.com/academia/academia-center)
12-
* Unzip
12+
* Gurobi solver
13+
* Maven
14+
* Wget, Unzip
1315

1416
## Quick start
1517

@@ -18,24 +20,28 @@ Mandolin
1820

1921
## Experiments
2022

21-
The following command will discover new links of any predicate (`--aim`) on the WordNet dataset (`--input`) with mining threshold 0.9 (`--mining`) and 1 million Gibbs sampling iterations (`--sampling`).
23+
The following command will discover new links of any predicate (`--aim`) on the WordNet dataset (`--input`) with mining threshold 0.8 (`--mining`) and 1 million Gibbs sampling iterations (`--sampling`).
2224

2325
```bash
24-
java -Xmx1g -jar target/Mandolin-0.4.0-jar-with-dependencies.jar plain --input data/benchmark/wn18/wordnet-mlj12-train.nt,data/benchmark/wn18/wordnet-mlj12-valid.nt --output eval/wn18 --mining 0.9 --sampling 1000000 --aim "*"
26+
java -Xmx1g -jar target/Mandolin-0.4.0-jar-with-dependencies.jar plain --input data/benchmark/wn18/wordnet-mlj12-train.nt,data/benchmark/wn18/wordnet-mlj12-valid.nt --output eval/wn18 --mining 0.8 --sampling 1000000 --aim "*"
2527
```
2628

27-
Discovered links can be found in the `--output` folder at `./eval/wn18/discovered_X.nt`, where `X` is the output threshold.
29+
Discovered links can be found in the `--output` folder at `./eval/wn18/discovered_X.nt`, where `X` is the output threshold, meaning that a file contains all links whose confidence is greater or equal than `X`.
2830

29-
An excerpt of the discovered **rules and weights** for this execution.
31+
An excerpt of the discovered **rules and weights**:
3032

3133
```text
32-
0.990517419 wn18:\_part\_of(b, a) => \_has\_part(a, b)
34+
0.990517419 wn18:_part_of(b, a) => wn18:_has_part(a, b)
35+
0.862068966 wn18:_instance_hypernym(a, c) AND wn18:_synset_domain_topic_of(f, b) => wn18:_synset_domain_topic_of(a, b)
3336
```
3437

35-
An excerpt of the discovered **links** for this execution:
38+
An excerpt of the discovered **links** with confidence > 0.9:
3639

3740
```text
38-
41+
wn18:08131530 wn18:_has_part wn18:08132046 .
42+
wn18:09189411 wn18:_has_part wn18:08707917 .
43+
wn18:10484858 wn18:_synset_domain_topic_of wn18:08441203 .
44+
wn18:01941987 wn18:_synset_domain_topic_of wn18:00300441 .
3945
```
4046

4147
### Basic documentation
@@ -62,7 +68,7 @@ Parameters for `plain` goal:
6268
`--input`|Comma-separated N-Triple files.|`data1.nt,data2.nt`
6369
`--output`|Workspace and output folder.|`eval/experiment1`
6470
`--aim`|Aim predicate. For all predicates use wildcard `*`.|`http://www.w3.org/2002/07/owl#sameAs`
65-
`--mining`|Rule mining threshold.|`0.9` (default: `0.1`)
71+
`--mining`|Rule mining threshold.|`0.9` (default: `0.0` support)
6672
`--sampling`|Gibbs sampling iterations.|`1000000` (default: 100 x evidence size)
6773
`--rules`|Maximum number of rules.|`1500` (default: none)
6874
`--sim`|Enable similarity among literals as `min,step,max`.|`0.8,0.1,0.9` (default: none)
@@ -135,3 +141,4 @@ sh pgsql-start.sh
135141
**AMIE** is licensed under Creative Commons Attribution-NonComercial license v3.0.
136142
**ProbKB** is licensed under the BSD license.
137143
**RockIt** is licensed under the MIT License.
144+
**Gurobi** can be activated using a [free academic license](http://www.gurobi.com/academia/academia-center).

0 commit comments

Comments
 (0)