> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Hypothesis tree

> How the Extraction Rules activity builds a hypothesis tree, evaluates paths by multiplying quality values, and selects the best-rated path through the tree.

When matching each Extraction Rules activity, the program sequentially builds hypotheses for all created elements. Element hypotheses are formulated sequentially (from the first element in the tree to the last). A hypothesis tree is then created using the formulated hypotheses. If the variant is matched successfully, the hypothesis tree is displayed in the **Tree of Hypotheses** pane:

<img src="https://mintcdn.com/abbyy/Bmjdl5TjCaidPxKi/images/vantage/advanced-designer/ad_extractionrules_hyptree.png?fit=max&auto=format&n=Bmjdl5TjCaidPxKi&q=85&s=8b4a317b35e08fc8325eafb2fe0d4657" alt="Hypothesis Tree Example" width="658" height="315" data-path="images/vantage/advanced-designer/ad_extractionrules_hyptree.png" />

If several variants have been matched, only the hypothesis tree of the variant matched first is displayed. If the activity could not be matched, the hypothesis tree for the first version is displayed.

The program uses the hypothesis tree to select the best path, i.e. the best-rated path to the formulated hypothesis for the last element in the tree. Paths are evaluated by multiplying the quality values of all hypotheses of elements along the path. The location of the activity blocks is calculated using the hypotheses formulated for elements in the best path of a specific hypothesis tree.

## View element hypotheses

To view element hypotheses for a group element:

<Steps>
  <Step title="Select a hypothesis">
    Click a hypothesis in the **Tree of Hypotheses** pane.
  </Step>

  <Step title="Show details">
    Press **Enter** or use the **Show Details** command in the context menu.
  </Step>
</Steps>

To navigate back by one level, use the **Go One Level Up** command in the context menu.

## Understand the hypothesis tree

The left column of the hypothesis tree lists the elements of nesting level 1 in the same order as they are described in the element tree. The right column contains special icons representing hypotheses for that particular element. Formulated hypotheses are connected by lines that demonstrate the order of their formulation. Best path hypotheses are connected using green lines, while all other lines are gray.

## Hypothesis icons

| Icon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Description                                                                                                                                                                      |
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/hyp_best.gif?s=4ae3c600a50f3b0dae56afb020abfa05" alt="Best path" style={{ width:"51%" }} width="15" height="16" data-path="images/vantage/advanced-designer/hyp_best.gif" />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | A hypothesis from the best path.                                                                                                                                                 |
| <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/hyp_nobest.gif?s=b9081e47287a1d7e6c4a5e5d5ee23153" alt="Non-best path" style={{ width:"49%" }} width="15" height="16" data-path="images/vantage/advanced-designer/hyp_nobest.gif" />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | A hypothesis not from the best path.                                                                                                                                             |
| <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/null_hyp_best.gif?s=0fb8724e889ae91490aebe740e980edc" alt="Best path null" style={{ width:"49%" }} width="15" height="16" data-path="images/vantage/advanced-designer/null_hyp_best.gif" />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | A null hypothesis from the best path.                                                                                                                                            |
| <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/null_hyp_nobest.gif?s=2113056cd069fa6796d820309b7dbc00" alt="Non-best path null" style={{ width:"47%" }} width="15" height="16" data-path="images/vantage/advanced-designer/null_hyp_nobest.gif" />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | A null hypothesis not from the best path.                                                                                                                                        |
| <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/hyp_red.gif?s=4ee5e676327900298242ff04d5db376f" alt="Incomplete chain" style={{ width:"46%" }} width="15" height="16" data-path="images/vantage/advanced-designer/hyp_red.gif" />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | An incomplete chain of hypotheses for a Group element (Group, Repeating Group, Header, Footer). You can view an incomplete chain of hypotheses to locate a non-detected element. |
| <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/hyp_best_plus.gif?s=83d88ab82621816f8432fad8291cba73" alt="Best path+" width="15" height="16" data-path="images/vantage/advanced-designer/hyp_best_plus.gif" />     <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/hyp_nobest_plus.gif?s=fe4c43b76ab3309a224ab1fd76645f92" alt="Non-best+" width="15" height="16" data-path="images/vantage/advanced-designer/hyp_nobest_plus.gif" />     <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/null_hyp_best_plus.gif?s=58f60aaa16dac8fac7858c9b2814a6f2" alt="Null best+" width="15" height="16" data-path="images/vantage/advanced-designer/null_hyp_best_plus.gif" />     <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/null_hyp_nobest_plus.gif?s=46dde5c418ae3dccd6eb94a39a9263ff" alt="Null non-best+" width="15" height="16" data-path="images/vantage/advanced-designer/null_hyp_nobest_plus.gif" />                                                                                                                                                                                                                                                                                                                                        | The branch of the element displays the hypothesis from the best path. To view all the hypotheses, press "+" or select **Expand Active** in the shortcut menu.                    |
| <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/hyp_best-.gif?s=75cc8d5b6b187562c27f8180ea3e50bb" alt="Best path-" width="15" height="16" data-path="images/vantage/advanced-designer/hyp_best-.gif" />     <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/hyp_nobest-.gif?s=1ebbad706c42f0a4d37f66528fe458f8" alt="Non-best-" width="15" height="16" data-path="images/vantage/advanced-designer/hyp_nobest-.gif" />     <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/null_hyp_best-.gif?s=36fe18f802edfda5aea73865fc7e054e" alt="Null best-" width="15" height="16" data-path="images/vantage/advanced-designer/null_hyp_best-.gif" />     <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/null_hyp_nobest-.gif?s=26ded10da3e55707bd2e26673f435dd9" alt="Null non-best-" width="15" height="16" data-path="images/vantage/advanced-designer/null_hyp_nobest-.gif" />                                                                                                                                                                                                                                                                                                                                                                        | Displays all the hypotheses in the branch of the element. To hide the hypotheses which are not from the best path, press "-" or select **Collapse Active** in the shortcut menu. |
| <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/hyp_best_end.gif?s=f3fcd82e8ee22b66faec26f4bb2a415c" alt="Best end" width="15" height="16" data-path="images/vantage/advanced-designer/hyp_best_end.gif" />     <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/hyp_nobest_end.gif?s=e1af6b78c8ae119a9536f9905b1cbc6e" alt="Non-best end" width="15" height="16" data-path="images/vantage/advanced-designer/hyp_nobest_end.gif" />     <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/null_hyp_best_end.gif?s=3178d86e50f26d6fa915511f1e7b184b" alt="Null best end" width="15" height="16" data-path="images/vantage/advanced-designer/null_hyp_best_end.gif" />     <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/null_hyp_nobest_end.gif?s=f81433a024fea33f8a00ab6ca9027009" alt="Null non-best end" width="15" height="16" data-path="images/vantage/advanced-designer/null_hyp_nobest_end.gif" />     <img src="https://mintcdn.com/abbyy/NXewBo345IS17i7w/images/vantage/advanced-designer/hyp_red_striked.gif?s=5beddcc9a058ef49e7394678be9b6def" alt="Red striked" width="15" height="16" data-path="images/vantage/advanced-designer/hyp_red_striked.gif" /> | The sub-branch of hypotheses for the element was discontinued at this point.                                                                                                     |
