Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yao8839836 committed Sep 4, 2019
1 parent 62b76ed commit b03203c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
@@ -1,6 +1,7 @@
# KG-BERT: BERT for Knowledge Graph Completion

The repository is modified from [pytorch-pretrained-BERT](https://github.com/huggingface/pytorch-pretrained-BERT).
The repository is modified from [pytorch-pretrained-BERT](https://github.com/huggingface/pytorch-pretrained-BERT) and tested on Python 3.5+.


## Installing requirement packages

Expand Down Expand Up @@ -80,7 +81,7 @@ python3 run_bert_relation_prediction.py
--eval_batch_size 512
```

### 2. Link Prediction
### 3. Link Prediction

#### WN18RR

Expand Down
2 changes: 1 addition & 1 deletion run_bert_triple_classifier.py
Expand Up @@ -117,7 +117,7 @@ def __init__(self):
def get_train_examples(self, data_dir):
"""See base class."""
return self._create_examples(
self._read_tsv(os.path.join(data_dir, "train_10.tsv")), "train", data_dir)
self._read_tsv(os.path.join(data_dir, "train.tsv")), "train", data_dir)

def get_dev_examples(self, data_dir):
"""See base class."""
Expand Down

0 comments on commit b03203c

Please sign in to comment.