-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot combine Text models if they contain ()"'[] in the string #84
Comments
Hi @Denton-L! Thanks for raising this issue. It looks like the error actually comes when the model is created rather than at the Here's what seems to be happening:
If this is causing problems with one of your projects, the easiest fix would be to override In the slightly longer-term, I think these fixes are in order:
Any other thoughts/suggestions? |
👍 It would be great if we can add other punctuation marks. (e.g. Japanese: |
Environment
Description
If you are creating a new
Text
orNewlineText
model and the string contains any of()"'[]
, you will get aKeyError
when trying to combine it with another model.Here's some example code that demonstrates this issue. (Note that you can get
titles-33(1)(a).txt
from https://github.com/wragge/sekritfiles/blob/master/data/titles-33(1)(a).txt.)Stacktrace
The text was updated successfully, but these errors were encountered: