Automatic Speech Recognition
Transformers
Safetensors
Khmer
English
troryongasr
custom_code
Kimang18 commited on
Commit
55e58ad
·
verified ·
1 Parent(s): bc0584c

Update tokenization_troryongasr.py

Browse files
Files changed (1) hide show
  1. tokenization_troryongasr.py +1 -1
tokenization_troryongasr.py CHANGED
@@ -88,7 +88,7 @@ class TrorYongASRTokenizer(LlamaTokenizer):
88
 
89
  def __call__(self, text: Optional[str] = None) -> List[int]:
90
  encoding = self.encode(text, add_special_tokens=False)
91
- return [*self.sot_sequence] + encoding
92
 
93
  @cached_property
94
  def eot(self) -> int:
 
88
 
89
  def __call__(self, text: Optional[str] = None) -> List[int]:
90
  encoding = self.encode(text, add_special_tokens=False)
91
+ return [*self.sot_sequence] + encoding + [self.eot]
92
 
93
  @cached_property
94
  def eot(self) -> int: