Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Sep 3, 2022
1 parent 1e64217 commit 2e999a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@

* 基于 g2pW 0.0.6 实现的第一个版本。


[0.2.0]: https://github.com/mozillazg/pypinyin-g2pW/compare/v0.1.0...v0.2.0
[0.3.0]: https://github.com/mozillazg/pypinyin-g2pW/compare/v0.2.0...v0.3.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
## 离线使用

默认情况下,即便使用了离线的模型数据,程序使用的 transformers 模块仍旧会从 huggingface.co 下载部分模型元数据。
可以通过设置环境变量 `TRANSFORMERS_OFFLINE=1` `HF_DATASETS_OFFLINE=1` 禁用获取元数据的操作,实现完全离线使用的需求。
可以通过设置环境变量 `TRANSFORMERS_OFFLINE=1` 以及环境变量 `HF_DATASETS_OFFLINE=1` 禁用获取元数据的操作,实现完全离线使用的需求。
详见 [transformers 官方文档](https://huggingface.co/docs/transformers/v4.21.2/en/installation#offline-mode)


Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"Operating System :: OS Independent",
],
package_dir={"": "src"},
install_requires=[
'g2pw>=0.1.1', 'pypinyin>=0.47.1'],
install_requires=['g2pw>=0.1.1', 'pypinyin>=0.47.1'],
packages=setuptools.find_packages(where="src"),
python_requires='>=3.6, <4',
)

0 comments on commit 2e999a5

Please sign in to comment.