// This file is autogenerated, DO NOT EDIT
// inference/post-inference.asciidoc:202

[source, python]
----
resp = client.inference.inference(
    task_type="sparse_embedding",
    inference_id="my-elser-model",
    input="The sky above the port was the color of television tuned to a dead channel.",
)
print(resp)
----
