소스 검색

more linter feeding

Patrick Devine 2 달 전
부모
커밋
b7349a4efd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      model/process_text_spm.go

+ 1 - 1
model/process_text_spm.go

@@ -26,7 +26,7 @@ func NewSentencePieceModel(pre string, vocab *Vocabulary) SentencePieceModel {
 
 	counter := map[int]int{}
 	var maxTokenLen int
-	for cnt, _ := range vocab.Types {
+	for cnt := range vocab.Types {
 		switch vocab.Types[cnt] {
 		case TOKEN_TYPE_NORMAL, TOKEN_TYPE_USER_DEFINED, TOKEN_TYPE_UNUSED:
 			maxTokenLen = max(maxTokenLen, len(vocab.Values[cnt]))