original_docstring: 
          extract ids for the tokens in each half of the shortest dependency path between each token in each relation
          
docstring: extract ids for the tokens in each half of the shortest dependency path between each token in each relation
docstring_tokens: extract ids for the tokens in each half of the shortest dependency path between each token in each relation
code: def _get_token_id_subpaths(self, note):
          '''
          extract ids for the tokens in each half of the shortest dependency path between each token in each relation
          '''
          # TODO: for now we only look at the first token in a given entity. Eventually, we should get all tokens in the entity
  
          pairs = note.get_tlinked_entities()
  
          left_paths = []
          right_paths = []
  
          for pair in pairs:
              target_id = ''
              source_id = ''
  
              # extract and reformat the ids in the pair to be of form t# instead of w#
              # events may be linked to document creation time, which will not have an id
              if 'id' in pair["target_entity"][0]:
                  target_id = pair["target_entity"][0]["id"]
                  target_id = 't' + target_id[1:]
              if 'id' in pair["src_entity"][0]:
                  source_id = pair["src_entity"][0]["id"]
                  source_id = 't' + source_id[1:]
  
              left_path, right_path = note.dependency_paths.get_left_right_subpaths(target_id, source_id)
              left_paths.append(left_path)
              right_paths.append(right_path)
  
          return left_paths, right_paths
code_tokens: def _get_token_id_subpaths ( self , note ) : pairs = note . get_tlinked_entities ( ) left_paths = [ ] right_paths = [ ] for pair in pairs : target_id = '' source_id = '' if 'id' in pair [ "target_entity" ] [ 0 ] : target_id = pair [ "target_entity" ] [ 0 ] [ "id" ] target_id = 't' + target_id [ 1 : ] if 'id' in pair [ "src_entity" ] [ 0 ] : source_id = pair [ "src_entity" ] [ 0 ] [ "id" ] source_id = 't' + source_id [ 1 : ] left_path , right_path = note . dependency_paths . get_left_right_subpaths ( target_id , source_id ) left_paths . append ( left_path ) right_paths . append ( right_path ) return left_paths , right_paths
short_docstring: extract ids for the tokens in each half of the shortest dependency path between each token in each relation
short_docstring_tokens: extract ids for the tokens in each half of the shortest dependency path between each token in each relation
comment: '''
          extract ids for the tokens in each half of the shortest dependency path between each token in each relation
          '''$SEP$# TODO: for now we only look at the first token in a given entity. Eventually, we should get all tokens in the entity$SEP$# extract and reformat the ids in the pair to be of form t# instead of w#$SEP$# events may be linked to document creation time, which will not have an id