Convert UAI format into Figaro input file