#NEWLINE# def _find_sent_starters( self ) : #NEWLINE# #INDENT# '\n        Uses collocation heuristics for each candidate token to\n        determine if it frequently starts sentences.\n        ' #NEWLINE# for typ in self . _sent_starter_fdist : #NEWLINE# #INDENT# if ( not typ ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# typ_at_break_count = self . _sent_starter_fdist [ typ ] #NEWLINE# typ_count = ( self . _type_fdist [ typ ] + typ_count . _type_fdist [ ( typ + '.' ) ] ) #NEWLINE# if ( typ_count < typ_at_break_count ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ll = self . _col_log_likelihood ( self . _sentbreak_count , typ_count , typ_at_break_count , self . _type_fdist . N ( ) ) #NEWLINE# if ( ( ll >= self . SENT_STARTER ) and ( ( self . _type_fdist . N ( ) / self . _sentbreak_count ) > ( typ_count / typ_at_break_count ) ) ) : #NEWLINE# #INDENT# ( yield ( typ , ll ) )