Tencent / NeuralNLP-NeuralClassifier

An Open-source Neural Hierarchical Multi-label Text Classification Toolkit
Other
1.83k stars 402 forks source link

why use word frequency as word id? any good to do it? #100

Closed SeekPoint closed 3 years ago

coderbyr commented 3 years ago

what's the meaning of the first question? I think you question is why the word index is sorted by word frequency, am i right? Actually, descend order makes sure common words using litter index, which can reduce memory used in token representation