#!/usr/bin/python

import sys
import os
from os.path import join, isdir
import sentencepiece as spm

#--------------------------
def Load_sp_models(PATH):
        PATH_model = spm.SentencePieceProcessor()
        PATH_model.Load(join(PATH))
        return PATH_model
#--------------------------


[((10, 21, 10, 49), 'sentencepiece.SentencePieceProcessor', 'spm.SentencePieceProcessor', ({}, {}), '()', True, 'import sentencepiece as spm\n'), ((11, 24, 11, 34), 'os.path.join', 'join', ({(11, 29, 11, 33): 'PATH'}, {}), '(PATH)', False, 'from os.path import join, isdir\n')]