Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
vguerbet committed Jun 20, 2024
2 parents a7c2c28 + 2a6726e commit 6942e6c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ These rules are accompanied by various confidence scores. “AMIE” stands for

## Input files

AMIE takes as input a file that contains a knowledge base. This file must have one of the following formats:
AMIE takes as input a file that contains a knowledge base. The knowledge base can be in format TTL, N3, or CSV. AMIE supports two CSV variants:
1. `subject DELIM predicate DELIM object [whitespace/tabulation .] NEWLINE`
2. `factid DELIM subject DELIM predicate DELIM object [whitespace/tabulation .] NEWLINE`

The default delimiter `DELIM` is the tabulation (.tsv files) but can be changed using the `-d` option. Any trailing whitespaces followed by a point are ignored. This allows parsing most NT files using the option: `-d" "`.

However make sure the factid, subject, predicate nor the object contains the delimiter used (particularly in literal facts files). Otherwise the parsing may fail or facts may be wrongfully recognized as the second format.

In the near future, AMIE will be able to parse the W3C Turtle format as well.

## Running AMIE

Make sure that you have the latest version of [Java](https://java.com/en/download/) installed. Download the jar file, and type:
Expand Down

0 comments on commit 6942e6c

Please sign in to comment.