shibing624 commited on
Commit
06088e1
1 Parent(s): f33d55a

update chinese quote

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -50,9 +50,9 @@ outputs = model(**tokenizer(texts, padding=True, return_tensors='pt'))
50
  def get_errors(corrected_text, origin_text):
51
  details = []
52
  for i, ori_char in enumerate(origin_text):
53
- if ori_char == ' ':
54
  # add blank space
55
- corrected_text = corrected_text[:i] + ' ' + corrected_text[i:]
56
  continue
57
  if i >= len(corrected_text):
58
  continue
 
50
  def get_errors(corrected_text, origin_text):
51
  details = []
52
  for i, ori_char in enumerate(origin_text):
53
+ if ori_char in [' ', '“', '”', '‘', '’', '琊']:
54
  # add blank space
55
+ corrected_text = corrected_text[:i] + ori_char + corrected_text[i:]
56
  continue
57
  if i >= len(corrected_text):
58
  continue