add kwargs to base encode function
add kwargs to base encode function

huggingface/transformers,huggingface/transformers,huggingface/pytorch-transformers,huggingface/transformers,huggingface/transformers