(self, repetition_types: List[Text])
Initializes a new RepetitionScorer.

    Valid repetition types that can be computed are:
      regsn (e.g. regs1, regs2): n-gram based scoring.
      regsLCR/TCR: Longest/total consecutive repeating subsequence based
      scoring.

    Args:
      repetition_types: A list of repetition types to calculate.

    Returns:
      A dict mapping regs types to Score tuples.
Initializes a new RepetitionScorer.
Initializes a new RepetitionScorer .
def __init__(self, repetition_types: List[Text]):
    """Initializes a new RepetitionScorer.

    Valid repetition types that can be computed are:
      regsn (e.g. regs1, regs2): n-gram based scoring.
      regsLCR/TCR: Longest/total consecutive repeating subsequence based
      scoring.

    Args:
      repetition_types: A list of repetition types to calculate.

    Returns:
      A dict mapping regs types to Score tuples.
    """

    self.repetition_types = repetition_types
    self._tokenize = lambda s: s.split()
def __init__ ( self , repetition_types : List [ Text ] ) : self . repetition_types = repetition_types self . _tokenize = lambda s : s . split ( )