def create_entity()

in text-semantic-search/embeddings_extraction/etl/pipeline.py [0:0]


def create_entity(input_features, kind):
  entity = entity_pb2.Entity()
  datastore_helper.add_key_path(
    entity.key, kind, input_features['id'])
  datastore_helper.add_properties(
    entity, {
      'text': unicode(input_features['text'])
    })
  return entity