public CfgParseChart parseMarginal ( List < ? > terminals , Object root , boolean useSumProduct ) { CfgParseChart chart = createParseChart ( terminals , useSumProduct ) ; Factor rootFactor = TableFactor . pointDistribution ( parentVar , parentVar . outcomeArrayToAssignment ( root ) ) ; return marginal ( chart , terminals , rootFactor ) ; }
Compute the marginal distribution over all grammar entries conditioned on the given sequence of terminals .