bleualign/score.py
def cook_ref_set(ref, n=4):
    '''Takes a reference sentences for a single segment
    and returns an object that encapsulates everything that BLEU
    needs to know about them.  Also provides a set cause bleualign wants it'''
    ref = normalize(ref)
    counts = count_ngrams(ref, n)
    return (len(ref), counts, frozenset(counts))
def cook_ref_set(ref, n=4):
    '''Takes a reference sentences for a single segment
    and returns an object that encapsulates everything that BLEU
    needs to know about them.  Also provides a set cause bleualign wants it'''
    ref = normalize(ref)
    counts = count_ngrams(ref, n)
    return (len(ref), counts, frozenset(counts))
def cook_ref_set ( ref , n = 4 ) : ref = normalize ( ref ) counts = count_ngrams ( ref , n ) return ( len ( ref ) , counts , frozenset ( counts ) )
Takes a reference sentences for a single segment
    and returns an object that encapsulates everything that BLEU
    needs to know about them.  Also provides a set cause bleualign wants it
Takes a reference sentences for a single segment and returns an object that encapsulates everything that BLEU needs to know about them . Also provides a set cause bleualign wants it