# loadVocab {#loadVocab}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`loadVocab(filePath, vocabName)`

## Arguments {#arguments}

**filePath** A STRING scalar specifying the path to the vocabulary file, which can be a relative or absolute file path.

**vocabName** A STRING scalar that assigns a name to the loaded vocabulary.

## Details {#details}

Loads a vocabulary file into memory for text vectorization.

## Examples {#examples}

``` {#codeblock_hgp_xgp_mgc}
loadVocab("/home/data/vocab.txt", "vocab1")
```

Related functions: [unloadVocab](../u/unloadVocab.md), [tokenizeBert](../t/tokenizeBert.md)

