code: def raw_corpus_length_ratio(hypotheses: Iterable[str], references: Iterable[str]) -> float:
      
      ratios = [len(h.split())/len(r.split()) for h, r in zip(hypotheses, references)]
      return sum(ratios)/len(ratios) if len(ratios) else 0.0
docs: Simple wrapper around length ratio implementation.
  
      :param hypotheses: Hypotheses stream.
      :param references: Reference stream.
      :return: Length ratio score as float.