IR2Vec
|
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) | |
This script generates entity2id.txt, train2id.txt and relation2id.txt