#NEWLINE# def F1( classify = ( lambda document : False ) , documents = [ ] , average = None ) : #NEWLINE# #INDENT# ' Returns the harmonic mean of precision and recall.\n    ' #NEWLINE# return test ( classify , average , average ) [ 3 ]