For the log-linear parsing model in<cite> Clark and Curran (2004b)</cite> , the inside-outside algorithm is used to calculate feature expectations, which are then used by the BFGS algorithm to optimise the likelihood function.