AlibabaResearch / AlibabaResearch/AdvancedLiterateMachinery

GeoLayoutLM: Warning about mismatched tokenizer class: BrosTokenizer vs BertTokenizer

Đang mở
#211 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C++
Star
1.8k
Fork
195
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi, I encountered this warning when running the code:

The tokenizer class you load from this checkpoint is not the same type as the class this function is called from. It may result in unexpected tokenization.
The tokenizer class you load from this checkpoint is 'BertTokenizer'.
The class this function is called from is 'BrosTokenizer'.

However, in the code I only see this line:

TOKENIZER = BertTokenizer.from_pretrained("bert-large-uncased", do_lower_case=True)

I couldn't find any BrosTokenizer in the codebase. Is this warning expected, or could there be a mismatch somewhere in how the tokenizer is being used or loaded?

Thanks!

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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.