nguyenvulebinh commited on
Commit
48687d1
1 Parent(s): 95d8e06

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -23,7 +23,7 @@ spell_model = EncoderDecoderModel.from_pretrained(model_name)
23
 
24
  def oov_spelling(word, num_candidate=1):
25
  result = []
26
- inputs = spell_tokenizer([word])
27
  input_ids = inputs['input_ids']
28
  attention_mask = inputs['attention_mask']
29
  inputs = {
 
23
 
24
  def oov_spelling(word, num_candidate=1):
25
  result = []
26
+ inputs = spell_tokenizer([word.lower()])
27
  input_ids = inputs['input_ids']
28
  attention_mask = inputs['attention_mask']
29
  inputs = {