SentenceTransmorgrifier / example_run.py
Joshua Lansford
Testing example programs.
ee0d60a
raw
history blame contribute delete
452 Bytes
import pandas as pd
import transmorgrify
#load inference data
inference_data = pd.read_csv( "phonetics_out_gpu_4000.csv" )
#Load the model
my_model = transmorgrify.Transmorgrifier()
my_model.load( "my_model.tm" )
#do the inference
#model returns a generator so wrap it with a list
for result in my_model.execute( inference_data["in_data"] ):
print( result )
# results = list( my_model.execute( inference_data["in_data"] ) )
# print( results )