Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

❓Get stats (e.g. counts) about the merged pairs #1523

Open
pietrolesci opened this issue May 6, 2024 · 0 comments
Open

❓Get stats (e.g. counts) about the merged pairs #1523

pietrolesci opened this issue May 6, 2024 · 0 comments

Comments

@pietrolesci
Copy link

Hi there,

I was wondering whether there is an easy way to ask the tokeniser trainer to return the counts (or frequency) of the pair in the moment the merge decision is made. The ideal output would be having a new column with the frequency of the pair in the merges.txt file.

Tagging the line below as it seems the relevant part of the code that has the info (i.e., pair_counts)

let (mut pair_counts, mut where_to_update) = self.count_pairs(&words, &counts, &progress);

Thanks a lot for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant