---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://catboost.ai/docs/en/concepts/python-reference_dictionary_save.md
  - href: en/concepts/python-reference_dictionary_save.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

# save

<!-- source: en/_includes/work_src/reusage-tokenizer/save.md -->
Save the dictionary to a file.
<!-- endsource: en/_includes/work_src/reusage-tokenizer/save.md -->


## Method call format {#call-format}

```
save(frequency_dict_path,
     bpe_path=None)
```

## Parameters {#parameters}

### frequency_dict_path

#### Description

The path to the output file with the [frequency based dictionary](https://catboost.ai/docs/en/concepts/output-data_frequency-based-dict.md).

**Data types**

Obligatory parameter

**Default value**

Obligatory parameter

### bpe_path

#### Description

The path to the output file with the [BPE dictionary](https://catboost.ai/docs/en/concepts/output-data_bpe-dict.md).

**Data types**

Obligatory parameter

**Default value**

None (the dictionary is not saved)

## Type of return value {#return-value}

_catboost.Dictionary

