8000 GitHub - dice-group/esther · GitHub
[go: up one dir, main page]

Skip to content
dice-groupPublic

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

13 watching

Forks

Latest commit

 

History

132 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

ESTHER

Source code of ESTHER - Using Compositional Embeddings for Fact Checking

Esther currently supports TransE, RotatE and DensE embeddings.

Adding new KGE models

Create a class that extends EmbeddingModel.

How to run

  1. Generate KGE for the knowledge graph (we're only interested in relations embeddings)
  2. Upload the corresponding knowledge graph to a SPARQL endpoint
  3. Run ESTHER

Running ESTHER

ESTHER was developed using Java 17.

You can run ESTHER with maven's exec plugin :

mvn exec:java -Dexec.cleanupDaemonThreads=false -Dexec.mainClass="org.dice_group.main.Launcher" -Dexec.args="-m S -d TransE/ -e TransE -k 200 -se http://localhost:8890/sparql/ -s experiment_result -l 4 -loops -f facts.nt

Or through its jar file:

java -jar esther.jar -m S -d TransE/ -e TransE -k 200 -se http://localhost:8890/sparql/ -s experiment_result -l 4 -loops -f facts.nt

Parameters

ParameterRequiredDefaultDescription
--data, -dTrueNAFolder path where the embedding files and the relations dictionary reside
--save, -sTrueNASaving file name (It will be saved under the folder path previously specified)
--facts, -fTrueNAFile path of the reified statements to be checked.
--dictFalseNA File path of the relations dictionary. If it's not provided, it will be created from the embeddings file.
-dsFalseNoneDataset name {FB, WN} (only needed if the dictionary does not contain fully formed URIs)
--topk, -kFalse100Maximum number of metapaths
--matrix, -mFalseIThe comparison mode {S, SU, ND, NDS, I}
--emb-model,-eFalseTransEThe embedding model used {TransE, RotatE, DensE}
--endpoint, -seTrueNAThe SPARQL endpoint where the knowledge graph is hosted
-lFalse3Maximum path length
-loopsFalseFalseIf loops are to be allowed in paths

How to cite

@InProceedings{esther2021,
  author="da Silva, Ana Alexandra Morim
  and R{\"o}der, Michael
  and Ngomo, Axel-Cyrille Ngonga",
  title="Using Compositional Embeddings for Fact Checking",
  booktitle="The Semantic Web -- ISWC 2021",
  year="2021",
  publisher="Springer International Publishing",
  address="Cham",
  pages="270--286",
  isbn="978-3-030-88361-4"
}

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

13 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0