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

Closed
pietrolesci opened this issue May 6, 2024 · 2 comments
Closed

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

pietrolesci opened this issue May 6, 2024 · 2 comments
Labels

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!

Copy link

github-actions bot commented Jun 6, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Jun 6, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 11, 2024
@ArthurZucker
Copy link
Collaborator

Would something like a log do the trick for you @pietrolesci ? Cuz I plan on adding some log helper to help non rust users debug the internals

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

No branches or pull requests

2 participants