def F1(classify=(lambda document: False), documents=[], average=None):
 return test(classify, documents, average)[3]

def F1 ( classify = ( lambda document : False ) , documents = [ ] , average = None ) : return test ( classify , documents , average ) [ 3 ]
returns the harmonic mean of precision and recall .