﻿---
title: Try it out
description: When the model is deployed on at least one node in the cluster, you can begin to perform inference. Inference is a machine learning feature that enables...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4595/explore-analyze/machine-learning/nlp/ml-nlp-test-inference
products:
  - Machine Learning
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available in 9.0+
---

# Try it out
When the model is deployed on at least one node in the cluster, you can begin to perform inference. *Inference* is a machine learning feature that enables you to use your trained models to perform NLP tasks (such as text extraction, classification, or embeddings) on incoming data.
The simplest method to test your model against new data is to use the **Test model** action in Kibana. You can either provide some input text or use a field of an existing index in your cluster to test the model:
![Testing a sentence with two named entities against a NER trained model in the *machine learning* app](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4595/explore-analyze/images/machine-learning-ml-nlp-test-ner.png)

Alternatively, you can use the [infer trained model API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-infer-trained-model). For example, to try a named entity recognition task, provide some sample text:
```json

{
  "docs":[{"text_field": "Sasha bought 300 shares of Acme Corp in 2022."}]
}
```

In this example, the response contains the annotated text output and the recognized entities:
```json
{
  "inference_results" : [
    {
      "predicted_value" : "[Sasha](PER&Sasha) bought 300 shares of [Acme Corp](ORG&Acme+Corp) in 2022.",
      "entities" : [
        {
          "entity" : "Sasha",
          "class_name" : "PER",
          "class_probability" : 0.9953193407987492,
          "start_pos" : 0,
          "end_pos" : 5
        },
        {
          "entity" : "Acme Corp",
          "class_name" : "ORG",
          "class_probability" : 0.9996392198381716,
          "start_pos" : 27,
          "end_pos" : 36
        }
      ]
    }
  ]
}
```

If you are satisfied with the results, you can add these NLP tasks in your [ingestion pipelines](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4595/explore-analyze/machine-learning/nlp/ml-nlp-inference).