tools/traffic_annotation/scripts/extractor.py
def parse_definition(self, re_match: re.Match):
    """Parses the annotation and populates object fields.

    Args:
      re_match: A Match obtained from the Language's call_detection_regex.
    """
    definition_function = re_match.group(1)
    self.type_name = self.language.annotation_types[definition_function]

    # Parse the arguments given to the definition function, populating
    # |unique_id|, |text| and (possibly) |extra_id|.
    body = re_match.string[re_match.end():]
    self._parse_body(body)
Parses the annotation and populates object fields.

    Args:
      re_match: A Match obtained from the Language's call_detection_regex.
    
Parses the annotation and populates object fields.
Parses the annotation and populates object fields .
def parse_definition(self, re_match: re.Match):
    definition_function = re_match.group(1)
    self.type_name = self.language.annotation_types[definition_function]
    body = re_match.string[re_match.end():]
    self._parse_body(body)
def parse_definition ( self , re_match : re . Match ) : definition_function = re_match . group ( 1 ) self . type_name = self . language . annotation_types [ definition_function ] body = re_match . string [ re_match . end ( ) : ] self . _parse_body ( body )
Parses the annotation and populates object fields.
Parses the annotation and populates object fields .
"""Parses the annotation and populates object fields.

    Args:
      re_match: A Match obtained from the Language's call_detection_regex.
    """ # Parse the arguments given to the definition function, populating # |unique_id|, |text| and (possibly) |extra_id|.
self
re_match
re.Match
A Match obtained from the Language's call_detection_regex.
A Match obtained from the Language ' s call_detection_regex .