How to compute conditional probability in code?
For this specific paper, the conditional distribution is calculated as follows: 

$ P(f_i = v |f_{1:i-1} ) = \frac{\exp(o_{i,v})}{\sum_{v=1}^V\exp(o_{i,v})} $

on page 1702