【meloform】why all token id in dictionary is 0?
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5k
- Forks
- 499
- PR merge metrics
- No merged PRs in 30d
Description
Notice that gen_dictionary function uses the variable ‘num’ to represent each token's id, but 'num' keeps 0 for the whole process, so all
tokens in the dictionary are 0, is that a bug, or does it make any sense?


Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the repository for the gen_dictionary function and inspect how the num variable is initialized and used while building the token dictionary. Reproduce the reported output, then verify that generated tokens receive the intended IDs rather than all sharing 0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100