Skip to content

Commit

Permalink
Remove leftover function (huggingface#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcuenca authored Mar 15, 2024
1 parent a741be8 commit 5105f72
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Sources/Tokenizers/BertTokenizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ class BertTokenizer {


extension BertTokenizer: PreTrainedTokenizerModel {
// FIXME: remove
func callAsFunction(_ text: String) -> [Int] {
return []
}

var unknownToken: String? { wordpieceTokenizer.unkToken }
var unknownTokenId: Int? { vocab[unknownToken!] }

Expand Down

0 comments on commit 5105f72

Please sign in to comment.