Skip to content
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

CV2-5247-support-yake-keyword-extraction-for-chinese #112

Merged

Conversation

ahmednasserswe
Copy link
Contributor

Description

using jieba to segment mandarin text

Reference: CV2-5247 and CV2-4909

How has this been tested?

Has it been tested locally? Are there automated tests?
locally. will add automated tests as well.

Are there any external dependencies?

Are there changes required in sysops terraform for this feature or fix?

Have you considered secure coding practices when writing this code?

Please list any security concerns that may be relevant.

Copy link
Contributor

@skyemeedan skyemeedan left a comment

Choose a reason for hiding this comment

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

Can you add a test with a text example that shows this working? Ideally would be a chunk of non space delimited Chinese text that is badly parsed without jieba and then returns appropriate keywords when processed with jieba.

Copy link
Contributor

@skyemeedan skyemeedan left a comment

Choose a reason for hiding this comment

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

seems like a really cool library!

@DGaffney
Copy link
Collaborator

One extremely minor note otherwise good to go!

lib/model/yake_keywords.py Outdated Show resolved Hide resolved
lib/model/yake_keywords.py Show resolved Hide resolved
lib/model/yake_keywords.py Show resolved Hide resolved
…or language == 'zh' or language == 'zh-TW'` to `if language[:2]=="zh"`
@ahmednasserswe ahmednasserswe merged commit 6167257 into master Sep 30, 2024
2 checks passed
@computermacgyver computermacgyver deleted the CV2-5247-support-yake-keyword-extraction-for-chinese branch September 30, 2024 15:36
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.

4 participants