mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix issue with apostrophe token being banned
This commit is contained in:
parent
c53c279155
commit
5e0722c984
@ -127,6 +127,10 @@ struct LanguageModelState {
|
||||
// TODO: Since ". " is still blocked, we get "U.S" instead of the expected "U.S. "
|
||||
if(i == model->tokenToId(".")) continue;
|
||||
|
||||
// Specifically allow ' for words like Wasn't, which may be tokenized as
|
||||
// [Wasn] ['] [t ]
|
||||
if(i == model->tokenToId("'")) continue;
|
||||
|
||||
specialTokens.SAMPLING_BAD_TOKENS.emplace_back(i);
|
||||
}
|
||||
for(int i = model->tokenToId(":"); i <= model->tokenToId("~"); i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user