Hotfix for tokenizer modifying spaced ellipses and breaking new text recognition.
This commit is contained in:
parent
c0736a8ec7
commit
0b113a75b4
|
@ -701,7 +701,12 @@ def getnewcontent(txt):
|
||||||
else:
|
else:
|
||||||
delim = vars.actions[-1]
|
delim = vars.actions[-1]
|
||||||
|
|
||||||
return (txt.split(delim)[-1])
|
# Fix issue with tokenizer replacing space+period with period
|
||||||
|
delim = delim.replace(" .", ".")
|
||||||
|
|
||||||
|
split = txt.split(delim)
|
||||||
|
|
||||||
|
return (split[-1])
|
||||||
|
|
||||||
#==================================================================#
|
#==================================================================#
|
||||||
# Applies chosen formatting options to text submitted to AI
|
# Applies chosen formatting options to text submitted to AI
|
||||||
|
|
Loading…
Reference in New Issue