I read this method in a repository by huggingface:
@staticmethod
def from_file(vocab: str, **kwargs):
vocab = WordPiece.read_file(vocab)
return BertWordPieceTokenizer(vocab, **kwargs)
It returns an instantiation of a class, then I wonder why not classmethod?