def remove_vector_fields(attributes, data):
	"""
  Flatten data values to remove vector fields.
  Transforms "x: {name: val, rep: vector(val)}" to "x: val"
  """
	for attrib in attributes:
		if attrib['similarity'] == 'Semantic USE':
			print('data: ')
			print(data)
			value = data.get(attrib['name'])
			if value is not None:
				data[attrib['name']] = value['name']
	return data