Skip to content

Addapting preProcessing for some models of HF#36

Open
luizniero wants to merge 1 commit intoebanalyse:mainfrom
luizniero:patch-1
Open

Addapting preProcessing for some models of HF#36
luizniero wants to merge 1 commit intoebanalyse:mainfrom
luizniero:patch-1

Conversation

@luizniero
Copy link

Some models of HuggingFace, like 'pucpr/bioBERTpt-squad-v1.1-portuguese' uses 'None' as self.pad_token. It is a problem because return expects a vector of numbers and receives a vector with numbesr (for existing words) and None (for padding words). This if fix it.

Some models of HuggingFace, like 'pucpr/bioBERTpt-squad-v1.1-portuguese' uses 'None' as self.pad_token. It is a problem because return expects a vector of numbers and receives a vector with numbesr (for existing words) and None (for padding words). This if fix it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant