public CfgParseTree getBestParseTree ( ) { Factor rootMarginal = getMarginalEntries ( 0 , chartSize ( ) - 1 ) ; Assignment bestAssignment = rootMarginal . getMostLikelyAssignments ( 1 ) . get ( 0 ) ; return getBestParseTree ( bestAssignment . getOnlyValue ( ) ) ; }
Gets the best parse tree spanning the entire sentence .