Comments (5)
Hey! I suppose you are using python
and can't see what's inside your tokenizer! #1542 should help you with this 🤗
from tokenizers.
Hey! I suppose you are using
python
and can't see what's inside your tokenizer! #1542 should help you with this 🤗
Thank you for your reply, but I didn't fully understand what you meant. After using tokenizer._tokenizer.model, I got a BPE object, but I didn't see the attribute I wanted in it - that is, the mapping from byte values to Unicode. Could you explain it a bit more clearly, please?
from tokenizers.
You cannot see any attributes because both __repr__
and __str__
are not implemented
from tokenizers.
You cannot see any attributes because both
__repr__
and__str__
are not implemented
So, is it impossible to read this mapping relationship from the fast tokenizer?
from tokenizers.
It is coming with the PR that I linked 😉
from tokenizers.
Related Issues (20)
- "Solution" to memory hogging in train_new_from_iterator with a hack HOT 7
- How to use `TokenizerBuilder`? HOT 4
- [Bug?] Modifying normalizer for pretrained tokenizers don't consistently work HOT 2
- Llama-3 offset-mapping needs fixing HOT 6
- `Encoding` object stub doesn't include `__len__` HOT 4
- Progress bar doesn't show in log file. HOT 4
- Unable to Load Custom GPT2 Tokenizer - " data did not match any variant of untagged enum ModelWrapper at line 1 column 3193814" Error HOT 3
- Unable to sSet `use_regex=False` in BPE decoder & post_processor? HOT 4
- Decode regression HOT 10
- documentation of the `pattern` parameter in `pre_tokenizers.Split` is incorrect HOT 1
- Custom fast PreTokenizer, ported via PyO3 to Python HOT 2
- Tokenizer.from_bytes() not available in python bindings HOT 4
- BPE Split pretokenization rule is not reflected in the vocabulary HOT 2
- Truncation performs slowly. Tokenizer firstly encodes long sequence and then truncates it. HOT 2
- apply_chat_template api usage consult
- Issue with `SentencePieceUnigramTokenizer` Handling Unknown Tokens HOT 1
- `train_from_iterator` out of memory on WMT14 `de` dataset HOT 2
- return pytorch tensors like in transformers? HOT 5
- Risk of global variable memory leaks when calling train_from_iterator
- [building on windows] onig_sys/oniguruma two or more data types in declaration specifiers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tokenizers.