-
Notifications
You must be signed in to change notification settings - Fork 291
Use npz instead of pickle for Thai W2P weights #1328
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
+126
−68
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
2c19966
Update np.load to disallow allow_pickle
wannaphong c5e7b87
Fix np.load allow_pickle=False to work correctly with .npz format (#1…
Copilot 48b1f0f
Initial plan
Copilot 8ce6415
Fix np.load allow_pickle for legacy .npy corpus (ValueError fix)
Copilot 90eaaca
Merge pull request #1330 from PyThaiNLP/copilot/sub-pr-1328-again
bact d02d313
Initial plan
Copilot ec12c6e
Merge branch 'dev' into copilot/sub-pr-1328
Copilot a145055
Sync dev, add pickle warning, fix docstring and code style
Copilot 8c5f125
Update CHANGELOG for release 5.3.1
bact 053afe5
Merge pull request #1331 from PyThaiNLP/copilot/sub-pr-1328
bact 44b4202
Potential fix for pull request finding
bact dcb07e4
Potential fix for pull request finding
bact 8665e46
Potential fix for pull request finding
bact 9135471
Only load pickle file for PYTHAINLP_W2P_ALLOW_LEGACY_PICKLE is set
bact ba5e601
Add PYTHAINLP_W2P_ALLOW_LEGACY_PICKLE: 1 to untitest env
bact c8f9d56
Change PYTHAINLP_W2P_ALLOW_LEGACY_PICKLE to PYTHAINLP_ALLOW_UNSAFE_PI…
bact 5405fd1
Sort import
bact ee055c0
Add test for PYTHAINLP_ALLOW_UNSAFE_PICKLE
bact db08a00
Fix import
bact a8bfe51
Set PYTHAINLP_ALLOW_UNSAFE_PICKLE for tone detector test
bact bec6fe1
Refactor is_unsafe_pickle_allowed()
bact fb27b5d
Refactor model loading to use .npz format only
wannaphong ddb78b6
Clean up w2p.py by removing os and warnings imports
wannaphong 17f66ba
Remove PYTHAINLP_ALLOW_UNSAFE_PICKLE tests
bact 1caf8f6
Update CHANGELOG.md
bact 7a731a6
Fix imports
bact a52bdf1
Potential fix for pull request finding
bact 9cdd39e
Potential fix for pull request finding
bact b8f39fb
Update CHANGELOG.md
bact 500c6e5
Remove PYTHAINLP_ALLOW_UNSAFE_PICKLE from doc
bact 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
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
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.