Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

transformer 4.34.0 버전부터 tokenizer init 단계에서 vocab을 참조합니다. #12

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

JenniferOH
Copy link
Contributor

@JenniferOH JenniferOH commented Dec 14, 2023

KoBertTokenizer init에서 Build vocab 단계를 마친 이후에 super()를 호출해야합니다.

기존 코드로 실행 시 tokenizer 생성 단계에서 아래 에러가 발생합니다.
AttributeError: 'KoBertTokenizer' object has no attribute 'token2idx'

…BertTokenizer init에서 Build vocab 단계를 마친 이후에 super()를 호출해야합니다.
@JenniferOH JenniferOH changed the title transformer 4.34.0 버전부터 tokenizer init 단계에서 requires vocab을 참조합니다. transformer 4.34.0 버전부터 tokenizer init 단계에서 vocab을 참조합니다. Dec 14, 2023
@devsosin
Copy link

devsosin commented Aug 20, 2024

이거 빨리 머지하면 좋을 것 같아요.
#14 이슈에 대한 해결코드입니다.

@monologg

Copy link
Owner

@monologg monologg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여러 transformers 버전별로 이슈 없는 것 확인했습니다 감사합니다 🙇

@monologg monologg merged commit 7628bce into monologg:master Aug 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants