Commit 0ddbc16
authored
Add
`tokenizers` is used for tokenization of strings. While we do currently import titoken as well, we want to use `tokenizers` to
count tokens the same way Seer does in Sentry for stacktrace token counts. We could consider converting usages of titoken
to `tokenizers` to maintain a dependency on only one tokenization package, but for now we will have them both.tokenizers package (#1675)1 parent c601687 commit 0ddbc16
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| 576 | + | |
576 | 577 | | |
577 | 578 | | |
578 | 579 | | |
| |||
614 | 615 | | |
615 | 616 | | |
616 | 617 | | |
| 618 | + | |
| 619 | + | |
617 | 620 | | |
618 | 621 | | |
619 | 622 | | |
| |||
825 | 828 | | |
826 | 829 | | |
827 | 830 | | |
| 831 | + | |
| 832 | + | |
828 | 833 | | |
829 | 834 | | |
830 | 835 | | |
| |||
856 | 861 | | |
857 | 862 | | |
858 | 863 | | |
| 864 | + | |
| 865 | + | |
859 | 866 | | |
860 | 867 | | |
861 | 868 | | |
| |||
1675 | 1682 | | |
1676 | 1683 | | |
1677 | 1684 | | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
1678 | 1688 | | |
1679 | 1689 | | |
1680 | 1690 | | |
| |||
2970 | 2980 | | |
2971 | 2981 | | |
2972 | 2982 | | |
| 2983 | + | |
| 2984 | + | |
2973 | 2985 | | |
2974 | 2986 | | |
2975 | 2987 | | |
| |||
0 commit comments