func TestConfigFromPretrained(t *testing.T) {
	url := "https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-uncased-config.json"
	var config *bert.BertConfig = new(bert.BertConfig)
	err := transformer.LoadConfig(config, url, nil)
	if err != nil {
		t.Error(err)
	}
	wantVocabSize := int64(30522)
	gotVocabSize := config.VocabSize
	if !reflect.DeepEqual(wantVocabSize, gotVocabSize) {
		t.Errorf("Want: %v\n", wantVocabSize)
		t.Errorf("Got: %v\n", gotVocabSize)
	}
}
No custom params
package transformer_test
import (
	"reflect"
	"testing"
	"github.com/sugarme/transformer"
	"github.com/sugarme/transformer/bert"
)
func TestConfigFromPretrained_ModelName(t *testing.T) {
	modelName := "bert-base-uncased"
	var config *bert.BertConfig = new(bert.BertConfig)
	err := transformer.LoadConfig(config, modelName, nil)
	if err != nil {
		t.Error(err)
	}
	wantVocabSize := int64(30522)
	gotVocabSize := config.VocabSize
	if !reflect.DeepEqual(wantVocabSize, gotVocabSize) {
		t.Errorf("Want: %v\n", wantVocabSize)
		t.Errorf("Got: %v\n", gotVocabSize)
	}
}
func TestConfigFromPretrained_LocalFile(t *testing.T) {
	filename := "data/bert/config.json"
	var config *bert.BertConfig = new(bert.BertConfig)
	err := transformer.LoadConfig(config, filename, nil)
	if err != nil {
		t.Error(err)
	}
	wantVocabSize := int64(30522)
	gotVocabSize := config.VocabSize
	if !reflect.DeepEqual(wantVocabSize, gotVocabSize) {
		t.Errorf("Want: %v\n", wantVocabSize)
		t.Errorf("Got: %v\n", gotVocabSize)
	}
}