#NEWLINE# def sentenceFieldCount( self , solr_query , solr_filter = ' ' , sample_size = 1000 , include_stats = False , field = 'tags_id_story_sentences' , tag_sets_id = None ) : #NEWLINE# #INDENT# "\n        Right now the fields supported are 'tags_id_stories' or 'tags_id_story_sentences'\n        " #NEWLINE# params = { #NEWLINE# #INDENT# 'q' : solr_query , #NEWLINE# 'fq' : solr_filter , #NEWLINE# 'sample_size' : sample_size , #NEWLINE# 'field' : field , #NEWLINE# #UNINDENT# } #NEWLINE# if ( tag_sets_id is not None ) : #NEWLINE# #INDENT# params [ 'tag_sets_id' ] = tag_sets_id #NEWLINE# #UNINDENT# params [ 'include_stats' ] = ( 1 if ( include_stats is True ) else 0 ) #NEWLINE# return self . _queryForJson ( ( self . V2_API_URL + 'sentences/field_count' ) , params )