simonw / ttok

Count and truncate text based on tokens
Apache License 2.0
242 stars 7 forks source link