-
Notifications
You must be signed in to change notification settings - Fork 65
update fasttext download #82
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
Merged
Conversation
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
e06084
reviewed
May 21, 2025
| _fasttext_path = path | ||
|
|
||
| def download_fasttext() -> str: | ||
| def download_file_from_url(url, save_dir='downloads', filename='lid.176.bin'): |
Collaborator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
recommend add unit test
e06084
approved these changes
May 23, 2025
e06084
reviewed
May 23, 2025
| if _fasttext_path: | ||
| return _fasttext_path | ||
| file_path = hf_hub_download(repo_id='chupei/fasttext.lib.176.bin', filename='lid.176.bin') | ||
| file_path = download_file_from_url(url='https://dl.fbaipublicfiles.com/fasttext/supervised-models/lid.176.bin') |
Collaborator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest global config
e06084
added a commit
that referenced
this pull request
May 30, 2025
* feat: add more mcp tools and mcp demo (#78) * 1. update mcp server 2. update mcp server docs 3. add mcp demo * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * update mcp readme (#79) * 1. update mcp server 2. update mcp server docs 3. add mcp demo * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update README_mcp.md * Update README_mcp_zh-CN.md --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * feat: add wechat * x * docs: update readme * x * update fasttext download (#82) * feat: change download_fasttext * feat: add os * feat: add package * feat: add md5 check and TestDownloadFasttext * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * docs: update readme * x * optimize: change MetaData to Data (#85) * 1. update mcp server 2. update mcp server docs 3. add mcp demo * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update README_mcp.md * Update README_mcp_zh-CN.md * change MetaData to Data * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * docs: add Japanese readme (#86) * docs: update MCP readme * docs: add ja readme * x * Dev continue (#87) * feat: add continue exec example. * feat: fix lint * feat: add ci test * feat: fix lint * feat: 调整test目录与项目对齐,并加入ci * feat: v1.7 (#88) --------- Co-authored-by: seanpjlab <liuyuxin@pjlab.org.cn> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: chupei <njuchupei@gmail.com> Co-authored-by: chupei <chupei@pjlab.org.cn>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
change the way of downling fasttext.