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

# サンプル 2. Step 20: Cooking field の記述

> 不要な先頭テキストを除外するため、Cooking field を Serves、Portions、CookingDescription の各 element を含む Description Group に分解します。

このステップでは、調理手順と人数分の情報を含む、Cooking という名前の field をプログラムがどのように探すかを指定します。

すべてのテスト画像で、人数分の情報は Serves という単語の後に記載されています。ただし、画像 2、3、4 では、"serves" という単語の前に別の単語があります。認識対象の block からこの不要なテキストを除外できるように、field を記述してください。

FlexiLayout ツリー内で移動しやすくし、Cooking element の仮説数を減らすために、**Group** element を作成し、名前を **Description** にします。

1. **Cooking** element 内に、[Group](/ja/flexi-capture/fls/template/elements-simple) element を作成し、名前を **Description** にします。
2. **Description** element 内に、型が Static Text の element を作成し、名前を **Serves** にします。この element は、"Serves" という単語を見つけるために使用します。詳しくは [Step 21](/ja/flexi-capture/fls/tutorial2/2step21) を参照してください。
3. **Description** element 内に、型が [Character String](/ja/flexi-capture/fls/template/character-chain) の element を作成し、名前を **Portions** にします。この element は、人数分の数を見つけるために使用します。詳しくは [Step 22](/ja/flexi-capture/fls/tutorial2/2step22) を参照してください。
4. **Description** element 内に、型が Paragraph の element を作成し、名前を **CookingDescription** にします。この element は **Cooking** field に対応します。詳しくは [Step 23](/ja/flexi-capture/fls/tutorial2/2step23) を参照してください。
5. **Cooking** field に対応する block を作成し、名前を **CookingDescription** にします。詳しくは [Step 24](/ja/flexi-capture/fls/tutorial2/2step24) を参照してください。
