IR2Vec
Loading...
Searching...
No Matches
OpenKE.preprocess Namespace Reference

Functions

 getEntityDict (config)
 
 getRelationDict (config)
 
 createTrain2ID (entityDict, relationDict, config)
 

Variables

 parser = argparse.ArgumentParser()
 
 dest
 
 metavar
 
 help
 
 required
 
 default
 
 config = parser.parse_args()
 
 preprocessed_dir
 
int i = 0
 
 ed = getEntityDict(config)
 
 rd = getRelationDict(config)
 

Detailed Description

 This script generates entity2id.txt, train2id.txt and relation2id.txt