Perplexity per sentence implementation?
Đang mở
- Ngôn ngữ chính
- Python
- Star
- 1.6k
- Fork
- 447
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I need to get ppl per sentence for millions of lines. Splitting them into files each containing one sentence would be time consuming. Is it possible to achieve this by modifying dataloader? For example, give the model input as (num_sentences, num_tokens, max_characters_per_token) . The problem is how to pad sentences that doesn't have enough tokens. If this would work, will such padding affect state for next batch? If not, any other suggestions?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.