File size: 452 Bytes
ee0d60a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 )