#NEWLINE# def add_sip_to_fc( fc , tfidf , limit = 40 ) : #NEWLINE# #INDENT# 'add "bowNP_sip" to `fc` using `tfidf` data\n    ' #NEWLINE# if ( 'bowNP' not in fc ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( tfidf is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# sips = features . sip_noun_phrases ( tfidf , fc [ 'bowNP' ] . keys ( ) , limit = limit ) #NEWLINE# fc [ 'bowNP_sip' ] = StringCounter ( sips )