Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sthoo authored and sthoo committed Nov 5, 2018
1 parent 7d12e78 commit daf3d82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/fastwq/query/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def cloze_deletion(text, cloze):
e = s + l
w = word[:l]
result = result[:s+offset] + (config.cloze_str % w) + result[e+offset:]
offset += 8
offset += len(config.cloze_str)-2
return result

_stemmer = stemmer('english')
2 changes: 1 addition & 1 deletion addons21/fastwq/query/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def cloze_deletion(text, cloze):
e = s + l
w = word[:l]
result = result[:s+offset] + (config.cloze_str % w) + result[e+offset:]
offset += 8
offset += len(config.cloze_str)-2
return result

_stemmer = stemmer('english')

0 comments on commit daf3d82

Please sign in to comment.