-
Notifications
You must be signed in to change notification settings - Fork 653
feat: Optimize SmartCn Dictionaries and Add Dictionary Loading Tests #1154
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
Merged
NehanPathan
merged 15 commits into
apache:master
from
NehanPathan:feat/optimize-smartcn-dictionaries
Oct 8, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
12223a4
feat: Optimize SmartCn dictionaries and add loading tests
NehanPathan fa8fc77
refactor: apply review suggestions for SmartCn dictionary classes
NehanPathan 539d714
Fix casing for bigramdict.dct and coredict.dct to lowercase for case-β¦
NehanPathan cb6d24c
Revert breaking changes and restore compatibility; update tests for Bβ¦
NehanPathan 2fc4987
Improve SmartCN tests: Replace file existence checks with asserts, reβ¦
NehanPathan 8821689
Optimize dictionary loading: skip unused handle with Stream.Seek
NehanPathan 8c7b714
Fix: add final newline and remove trailing whitespace
NehanPathan 7c78868
Fix again: add final newline and remove trailing whitespace
NehanPathan 61a4c92
Merge branch 'master' into feat/optimize-smartcn-dictionaries
NehanPathan 941fe08
last file fix: add final newline and remove trailing whitespace
NehanPathan 4ebd65a
file fix: setup extension for add final newline and remove trailing wβ¦
NehanPathan a14bf81
Update SmartCn dictionary tests and BigramDictionary loading
NehanPathan c1bb6a5
Update BigramDictionary ie Updated LoadFromFile to throw IOException
NehanPathan b83ed00
Lucene.Net.Analysis.Cn.Smart.Hhmm.TestBuildDictionary: Modified the tβ¦
NightOwl888 965a088
Revert LoadFromFile length check to match upstream Lucene behavior
NehanPathan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,6 +81,7 @@ private static void Init() | |
| return; | ||
| } | ||
|
|
||
|
|
||
| try | ||
| { | ||
| while (new DirectoryInfo(currentPath).Parent != null) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.