You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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
)tokenizers/tokenizers/src/models/bpe/trainer.rs
Line 465 in 25aee8b
Thanks a lot for your help!
The text was updated successfully, but these errors were encountered: