global_recall.py
def most_frequent_omissions(recalled, ref_stats, n=None):
    """
    Rank the most frequent omissions.
    
    This function is agnostic to whether you want to use test or val as reference.
    """
    counts = Counter((word, ref_stats['total_counts'][word]) for word in recalled)
    if n:
        return counts.most_common(n)
    else:
        return counts.most_common()

    Rank the most frequent omissions.
    
    This function is agnostic to whether you want to use test or val as reference.
    
Rank the most frequent omissions.
This function is agnostic to whether you want to use test or val as reference.
Rank the most frequent omissions . This function is agnostic to whether you want to use test or val as reference .
def most_frequent_omissions(recalled, ref_stats, n=None):
    counts = Counter((word, ref_stats['total_counts'][word]) for word in recalled)
    if n:
        return counts.most_common(n)
    else:
        return counts.most_common()
def most_frequent_omissions ( recalled , ref_stats , n = None ) : counts = Counter ( ( word , ref_stats [ 'total_counts' ] [ word ] ) for word in recalled ) if n : return counts . most_common ( n ) else : return counts . most_common ( )
Rank the most frequent omissions.
Rank the most frequent omissions .
"""
    Rank the most frequent omissions.
    
    This function is agnostic to whether you want to use test or val as reference.
    """
recalled
ref_stats
n