---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://catboost.ai/docs/en/concepts/python-reference_dictionary_load.md
  - href: en/concepts/python-reference_dictionary_load.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

# load

<!-- source: en/_includes/work_src/reusage-tokenizer/load.md -->
Load the dictionary from a file.
<!-- endsource: en/_includes/work_src/reusage-tokenizer/load.md -->

## Method call format {#call-format}

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

## Parameters {#parameters}

### frequency_dict_path

#### Description

The path to the input frequency based dictionary file.

**Data types**

string

**Default value**

string

### bpe_path

#### Description

The path to the input BPE dictionary file.

**Data types**

string

**Default value**

None (the dictionary is not loaded)

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

_catboost.Dictionary

