import sys
import os
new_path = os.path.join(os.path.dirname(__file__), '../../src/ITransE')
sys.path.append(new_path)
from ITransE import ITransE
model = ITransE(dim=75, save_dir=os.path.join(os.path.dirname(__file__),
    'model_ItransE_person_15k.bin'))
model.Train_MT(epochs=400, save_every_epochs=100, languages=['en', 'fr'],
    graphs=[os.path.join(os.path.dirname(__file__),
    '../../data/WK3l-15k/en_fr/P_en_v5.csv'), os.path.join(os.path.dirname(
    __file__), '../../data/WK3l-15k/en_fr/P_fr_v5.csv')], intersect_graph=
    os.path.join(os.path.dirname(__file__),
    '../../data/WK3l-15k/en_fr/P_en_fr_v5.csv'), save_dirs=['model_en.bin',
    'model_fr.bin'], rate=0.01, split_rate=True, L1_flag=False)
model.save(os.path.join(os.path.dirname(__file__),
    'model_ItransE_person_15k.bin'))

c1fba9928187054e7024aa5b9a5500487b0b8c04
<mask token>

<mask token>
sys.path.append(new_path)
<mask token>
model.Train_MT(epochs=400, save_every_epochs=100, languages=['en', 'fr'],
    graphs=[os.path.join(os.path.dirname(__file__),
    '../../data/WK3l-15k/en_fr/P_en_v5.csv'), os.path.join(os.path.dirname(
    __file__), '../../data/WK3l-15k/en_fr/P_fr_v5.csv')], intersect_graph=
    os.path.join(os.path.dirname(__file__),
    '../../data/WK3l-15k/en_fr/P_en_fr_v5.csv'), save_dirs=['model_en.bin',
    'model_fr.bin'], rate=0.01, split_rate=True, L1_flag=False)
model.save(os.path.join(os.path.dirname(__file__),
    'model_ItransE_person_15k.bin'))

<mask token>
new_path = os.path.join(os.path.dirname(__file__), '../../src/ITransE')
sys.path.append(new_path)
<mask token>
model = ITransE(dim=75, save_dir=os.path.join(os.path.dirname(__file__),
    'model_ItransE_person_15k.bin'))
model.Train_MT(epochs=400, save_every_epochs=100, languages=['en', 'fr'],
    graphs=[os.path.join(os.path.dirname(__file__),
    '../../data/WK3l-15k/en_fr/P_en_v5.csv'), os.path.join(os.path.dirname(
    __file__), '../../data/WK3l-15k/en_fr/P_fr_v5.csv')], intersect_graph=
    os.path.join(os.path.dirname(__file__),
    '../../data/WK3l-15k/en_fr/P_en_fr_v5.csv'), save_dirs=['model_en.bin',
    'model_fr.bin'], rate=0.01, split_rate=True, L1_flag=False)
model.save(os.path.join(os.path.dirname(__file__),
    'model_ItransE_person_15k.bin'))

import sys
import os
new_path = os.path.join(os.path.dirname(__file__), '../../src/ITransE')
sys.path.append(new_path)
from ITransE import ITransE
model = ITransE(dim=75, save_dir=os.path.join(os.path.dirname(__file__),
    'model_ItransE_person_15k.bin'))
model.Train_MT(epochs=400, save_every_epochs=100, languages=['en', 'fr'],
    graphs=[os.path.join(os.path.dirname(__file__),
    '../../data/WK3l-15k/en_fr/P_en_v5.csv'), os.path.join(os.path.dirname(
    __file__), '../../data/WK3l-15k/en_fr/P_fr_v5.csv')], intersect_graph=
    os.path.join(os.path.dirname(__file__),
    '../../data/WK3l-15k/en_fr/P_en_fr_v5.csv'), save_dirs=['model_en.bin',
    'model_fr.bin'], rate=0.01, split_rate=True, L1_flag=False)
model.save(os.path.join(os.path.dirname(__file__),
    'model_ItransE_person_15k.bin'))
