> ## 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.

# 仮説ツリー

> ABBYY FlexiLayout Studio の仮説ツリーについて、最適パスの選択方法、Hypotheses ウィンドウでの見方、アイコンの意味を説明します。

各代替レイアウトを画像とマッチングする際、プログラムは各要素について順に仮説を生成します。要素の仮説は、ツリー内の最初の (一番上の) 要素から最後の (一番下の) 要素まで、1 つずつ生成されます。生成された仮説から、仮説ツリーが構築されます。

代替レイアウトが画像と正常にマッチングされると、仮説ツリーが **Hypotheses** ウィンドウに表示されます。複数の代替レイアウトが画像にマッチする場合は、最初の代替レイアウトの仮説ツリーが表示されます。どの代替レイアウトも画像にマッチしない場合も、最初の代替レイアウトの仮説ツリーが表示されます。

<Note>
  ある要素に対して作成される仮説の数は、**Number of surviving hypotheses** フィールドに設定された数を超える場合があります。この場合、ユーザー定義の数だけ最良の仮説が仮説ツリーに含まれます。
</Note>

<div id="best-path">
  ## 最適パス
</div>

仮説ツリーでは、プログラムは次に*最適パス*、つまり最後の要素の仮説に至るパスのうち、品質が最も高いものを探します。パスの品質は、そのパス上の各要素に対応する仮説の品質を掛け合わせて計算されます。

最適パス上の仮説は、ブロックの検出に使用されます。

<div id="view-the-tree-of-hypotheses">
  ## 仮説ツリーを表示する
</div>

仮説ツリーは、[Hypotheses](/ja/flexi-capture/fls/dif/hypotheses-window) ウィンドウに表示されます。

<Steps>
  <Step title="画像を開く" />

  <Step title="FlexiLayout を画像にマッチングする">
    **FlexiLayout** メニューまたはショートカットメニューから **Match** を選択します。
  </Step>
</Steps>

グループ要素に含まれる要素の仮説を表示するには、**グループ** 要素の仮説を選択し、**Enter** キーを押すか、ショートカットメニューから **Show Details** コマンドを選択します。

1 つ上のレベルに移動するには、**Ctrl+Enter** キーを押すか、ショートカットメニューから **Go One Level Up** コマンドを選択します。

<Note>
  現在の画像に対して構築された仮説ツリーは、その画像を閉じると削除されます。最適パス (**Matched Layout** の構築に使用された仮説の連鎖) は保持されます。画像を再度開くと、これらの仮説を表示できます。仮説ツリー全体を保存するとメモリを大量に消費する可能性があるため、プログラムは保存しません。
</Note>

<div id="parts-of-the-tree-of-hypotheses">
  ## 仮説ツリーの各部
</div>

左側の列には、FlexiLayout ツリーに表示される順に、第1階層の要素が並んでいます。

右側の列には、各要素について生成された仮説が表示されます。各仮説にはアイコンが付いています。仮説同士は細い線で結ばれており、生成された順序を示しています。最適パス上の仮説は緑色の線で、それ以外の仮説は灰色の線で結ばれています。

| アイコン                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | 説明                                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| <img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/hyp_best.gif?s=eef1d527150e4c2f5739a72cfbd7ffd5" alt="最適パスの仮説アイコン" width="15" height="16" data-path="images/flexi-capture/fls/hyp_best.gif" />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | 最適パスの仮説です。                                                                                 |
| <img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/hyp_nobest.gif?s=fad5a1a8b8bdd896e6c606644b3a997a" alt="最適パスではない仮説のアイコン" width="15" height="16" data-path="images/flexi-capture/fls/hyp_nobest.gif" />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | 最適パスではない仮説です。                                                                              |
| <img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/null_hyp_best.gif?s=9db2c734f07cf7e19d4c4278c197d329" alt="最適パスのヌル仮説アイコン" width="15" height="16" data-path="images/flexi-capture/fls/null_hyp_best.gif" />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | 最適パスのヌル仮説です。                                                                               |
| <img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/null_hyp_nobest.gif?s=13279863afc14fca86342d4d5a3f995b" alt="最適パスではないヌル仮説のアイコン" width="15" height="16" data-path="images/flexi-capture/fls/null_hyp_nobest.gif" />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | 最適パスではないヌル仮説です。                                                                            |
| <img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/hyp_red.gif?s=3c0dc64cbfa0e4e8cfcf92c7a0725300" alt="不完全な仮説チェーンのアイコン" width="15" height="16" data-path="images/flexi-capture/fls/hyp_red.gif" />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | グループ要素 (Group、繰り返しグループ、Header、Footer) の不完全な仮説チェーンです。検出されていない要素を特定するには、不完全な仮説チェーンを表示できます。   |
| <img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/hyp_best+.gif?s=65b916217f9d959e54c48a7f94b26800" alt="折りたたまれた分岐アイコン: 最適パスの仮説" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="15" height="16" data-path="images/flexi-capture/fls/hyp_best+.gif" />,<img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/hyp_nobest+.gif?s=09c4e67a9eec248e8bb9aa5e06311fe8" alt="折りたたまれた分岐アイコン: 最適パスではない仮説" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="15" height="16" data-path="images/flexi-capture/fls/hyp_nobest+.gif" />,<img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/null_hyp_best+.gif?s=c97feb2e871ce884f4c3b0a1544f88eb" alt="折りたたまれた分岐アイコン: 最適パスのヌル仮説" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="15" height="16" data-path="images/flexi-capture/fls/null_hyp_best+.gif" />,<img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/null_hyp_nobest+.gif?s=ae63d98f857fd255284b4b12265bf904" alt="折りたたまれた分岐アイコン: 最適パスではないヌル仮説" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="15" height="16" data-path="images/flexi-capture/fls/null_hyp_nobest+.gif" />                                                                                                                                                                                                                                                                                                                                                                                                                  | 要素のブランチには、最適パスの仮説が表示されます。すべての仮説を表示するには、「+」を押すか、ショートカットメニューで **Expand Active** を選択します。      |
| <img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/hyp_best-.gif?s=b69f68e3bbb81f7af79b2b271ac1f58a" alt="展開された分岐アイコン: 最適パスの仮説" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="15" height="16" data-path="images/flexi-capture/fls/hyp_best-.gif" />,<img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/hyp_nobest-.gif?s=aa293ae4639b06665ac2b0618331ec7b" alt="展開された分岐アイコン: 最適パスではない仮説" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="15" height="16" data-path="images/flexi-capture/fls/hyp_nobest-.gif" />,<img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/null_hyp_best-.gif?s=a0f991b2929260c76a356ac043a32a65" alt="展開された分岐アイコン: 最適パスのヌル仮説" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="15" height="16" data-path="images/flexi-capture/fls/null_hyp_best-.gif" />,<img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/null_hyp_nobest-.gif?s=7a6918de26d7bead52c503ec3cc6f3b9" alt="展開された分岐アイコン: 最適パスではないヌル仮説" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="15" height="16" data-path="images/flexi-capture/fls/null_hyp_nobest-.gif" />                                                                                                                                                                                                                                                                                                                                                                                                                          | 要素のブランチ内のすべての仮説を表示します。最適パスではない仮説を非表示にするには、「-」を押すか、ショートカットメニューで **Collapse Active** を選択します。 |
| <img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/hyp_best_end.gif?s=7609211c2d4f1ea22f701b40693a68ea" alt="中断された分岐アイコン: 最適パスの仮説" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="15" height="16" data-path="images/flexi-capture/fls/hyp_best_end.gif" />,<img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/hyp_nobest_end.gif?s=1d91bedc64567e2ae90049345ece42e8" alt="中断された分岐アイコン: 最適パスではない仮説" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="15" height="16" data-path="images/flexi-capture/fls/hyp_nobest_end.gif" />,<img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/null_hyp_best_end.gif?s=6d86783f67293f8bf0db92096b854515" alt="中断された分岐アイコン: 最適パスのヌル仮説" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="15" height="16" data-path="images/flexi-capture/fls/null_hyp_best_end.gif" />,<img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/null_hyp_nobest_end.gif?s=3f0660dff960a679e452cb2ce4d4100e" alt="中断された分岐アイコン: 最適パスではないヌル仮説" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="15" height="16" data-path="images/flexi-capture/fls/null_hyp_nobest_end.gif" />,<img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/hyp_red_striked.gif?s=b7cd00ab11c9a7b1aae6abf617119596" alt="中断された分岐アイコン: 不完全な仮説チェーン" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="15" height="16" data-path="images/flexi-capture/fls/hyp_red_striked.gif" /> | この位置で、要素の仮説の下位ブランチは終了しています。                                                                |
