> ## Documentation Index
> Fetch the complete documentation index at: https://docs.exploratory.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Count Text Pairs

## How to Access This Feature

Count pairs of tokens that appear simultaneously within a document.

### From + (plus) Button

You can access it from 'Add' (Plus) button. "Text Mining..." -> "Count Text Pairs".

![](https://mintcdn.com/exploratory-inc/VL_CUSf6Xsk2Ztlz/en/text/images/pair_count_add.png?fit=max\&auto=format\&n=VL_CUSf6Xsk2Ztlz\&q=85\&s=cf889ecf43121a7996273ea73952859e)

## How to Use?

![](https://mintcdn.com/exploratory-inc/VL_CUSf6Xsk2Ztlz/en/text/images/pair_count_param.png?fit=max\&auto=format\&n=VL_CUSf6Xsk2Ztlz\&q=85\&s=47c20cdf9ef5ba12a738c0f08d04b47d)

* Select a column that has tokenized text - Set a column that has tokens. This is "token" column if it's tokenized by [do\_tokenize](https://docs.exploratory.io/en/text/do_tokenize.md) function.
* Select a column as document id - A column considered as document id. If you run [do\_tokenize](https://docs.exploratory.io/en/text/do_tokenize.md) beforehand, this can be document\_id.
* Keep Only Unique Pairs (Optional) - The default is TRUE. If FALSE, duplicated pairs appear in reverse order.
* Keep Diagonal Pairs (Optional) - The default is FALSE. If TRUE, count of the value itself appears.
* Sort the Result (Optional) - The default is FALSE. If TRUE, the output is in decreasing order of frequency.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.