Skip to content

Conversation

FrankYFTang
Copy link
Collaborator

@FrankYFTang FrankYFTang commented Jun 27, 2025

@FrankYFTang FrankYFTang requested a review from grhoten June 27, 2025 21:46
@@ -76,7 +75,7 @@ std::u16string KoGrammarSynthesizer_ParticleResolver::getRelevantString(std::u16
}
if (!strToTokenize.empty() && !inflection::lang::StringFilterUtil::HANGUL_SCRIPT().contains((UChar32)inflection::util::StringViewUtils::codePointAt(strToTokenize, int32_t(strToTokenize.length() - 1)))) {
// We don't care about the strings in the phonetic Hangul script. Return the relevant last word to check without punctuation.
std::unique_ptr<inflection::tokenizer::TokenChain> tokenChain(npc(npc(englishTokenizer)->createTokenChain(std::u16string(strToTokenize))));
std::unique_ptr<inflection::tokenizer::TokenChain> tokenChain(npc(englishTokenizer->createTokenChain(std::u16string(strToTokenize))));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please ensure that englishTokenizer gets an npc check during construction, since you're removing it from here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PTAL

@FrankYFTang FrankYFTang requested a review from grhoten June 28, 2025 00:45
@FrankYFTang FrankYFTang merged commit 168a598 into unicode-org:main Jun 30, 2025
6 checks passed
@FrankYFTang FrankYFTang deleted the KoGrammarSynthesizer_ParticleResolver branch June 30, 2025 18:57
deonajulary06 pushed a commit that referenced this pull request Aug 21, 2025
#141)

* Inflection 134 std::unique_ptr for KoGrammarSynthesizer_ParticleResolver.cpp

* add npc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants