AlibabaResearch / AlibabaResearch/AdvancedLiterateMachinery

GeoLayoutLM: Warning about mismatched tokenizer class: BrosTokenizer vs BertTokenizer

オープン
#211 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
1.8k
フォーク
195
PR マージ指標
30日以内にマージされた PR はありません

説明

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!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。