monologg / KoBERT-NER

NER Task with KoBERT (with Naver NLP Challenge dataset)
Apache License 2.0
97 stars 34 forks source link

๐Ÿ› Bug ['KoBertTokenizer' object has no attribute 'token2idx'] #8

Closed khk37601 closed 1 year ago

khk37601 commented 1 year ago

์•ˆ๋…•ํ•˜์„ธ์š” ํ•ด๋‹น ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜์—ฌ ๋ฌธ์˜๋ฅผ ๋‚จ๊น๋‹ˆ๋‹ค. [์‹คํ–‰ ํˆด] CoLab [ํŒจํ‚ค์ง€] python == 3.10 transformers == 4.35.0 seqeval == 0.0.13 torch == 2.1.0+cu118

[์›์ธ] model_type ์˜ต์…˜์„ kobert ์ธ ๊ฒฝ์šฐ get_vocab() ํ•จ์ˆ˜์—์„œ self.token2idx ๋ฉค๋ฒ„๋ณ€์ˆ˜๋ฅผ ์ฐพ์ง€ ๋ชปํ•˜๋Š” ์˜ค๋ฅ˜๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

khk37601 commented 1 year ago

[branch] /dependabot/pip/transformers-4.30.0

[ํ•ด๊ฒฐ] transformers ๋ฒ„์ „์„ 4.35.0 => 4.30.0์œผ๋กœ ๋‚ฎ์ถ”๋ฉด์„œ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐ ํ–ˆ์Šต๋‹ˆ๋‹ค๐Ÿ˜€