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

# FRPage Object の CleanCacheDictionary メソッド

> ABBYY FineReader Engine API の FRPage Object における CleanCacheDictionary メソッド — ページレベルの cache dictionary からすべての単語を削除します。IEngine.AutoCleanRecognizerSession は FALSE に設定する必要があります。

このメソッドは、cache dictionary からすべての単語を削除します。cache dictionary は小規模な辞書 (約100語) で、処理中でも簡単に変更できます。処理中にドキュメントに関する新たな情報が見つかり、より適切な辞書を選択できる場合は、cache dictionary を使用できます。

<Warning>
  cache dictionary を使用するには、[IEngine::AutoCleanRecognizerSession](/ja/fine-reader/engine/api-reference/engine-object-iengine-interface/properties#autocleanrecognizersession) プロパティを FALSE に設定する必要があります。AutoCleanRecognizerSession プロパティは既定で TRUE に設定されており、FineReader Engine は各ページの認識後に認識セッションをクリーンアップします。その場合、cache dictionary も消去されます。ユーザーデータが誤って破棄されるのを防ぐため、FineReader Engine ではこのモードで cache dictionary を使用できません。cache dictionary を使用する場合は、必要に応じて [IEngine::CleanRecognizerSession](/ja/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/cleanrecognizersession-method) メソッドを呼び出し、認識セッションを手動でクリーンアップする必要があります。認識セッションをクリーンアップする必要があるタイミングについては、このメソッドの説明を参照してください。
</Warning>

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

```cpp theme={null}
HRESULT CleanCacheDictionary( IRecognizerParams* params );
```

### C\#

```csharp theme={null}
void CleanCacheDictionary( IRecognizerParams params );
```

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

```vb theme={null}
Sub CleanCacheDictionary(params As IRecognizerParams)
```

<div id="parameters">
  ## パラメーター
</div>

params

\[in] ページ処理パラメーターを格納する [RecognizerParams](/ja/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/recognizerparams) オブジェクト。

<div id="return-values">
  ## 戻り値
</div>

このメソッドに固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準的な戻り値](/ja/fine-reader/engine/api-reference/return-codes)が返されます。

<div id="see-also">
  ## 関連項目
</div>

[FRPage](/ja/fine-reader/engine/api-reference/document-related-objects/frpage)

[AddWordToCacheDictionary](/ja/fine-reader/engine/api-reference/document-related-objects/frpage/addwordtocachedictionary-method)

[AddWordsToCacheDictionary](/ja/fine-reader/engine/api-reference/document-related-objects/frpage/addwordstocachedictionary-method)

[辞書の使用方法](/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-dictionaries)
