# 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://2850417076-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4HLCK3olgduYoe3RVS%2F-M4oMvCUDQwHTJ0eWi_f%2F-M4oNGoJH_DDze5eW41C%2Fpair_count_add.png?generation=1586795490226578\&alt=media)

## How to Use?

![](https://2850417076-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4HLCK3olgduYoe3RVS%2F-M4oMvCUDQwHTJ0eWi_f%2F-M4oNGoNTB8b3UhMFq-C%2Fpair_count_param.png?generation=1586795490216615\&alt=media)

* 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/main/do_tokenize) function.
* Select a column as document id - A column considered as document id. If you run [do\_tokenize](https://docs.exploratory.io/main/do_tokenize) 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.
