Code Monkey home page Code Monkey logo

Comments (19)

morganwang010 avatar morganwang010 commented on May 14, 2024 11

1, manaul download the unidic.zip from https://cotonoha-dic.s3-ap-northeast-1.amazonaws.com/unidic-3.1.0.zip,
2, cp unidic-3.1.0.zip to /usr/local/lib/python3.9/site-packages/unidic/ and rename it to unidic.zip
3, change /usr/local/lib/python3.9/site-packages/unidic/download.py line 93 , function download_version, comment all except download_and_clean(),
4, change the download_and_clean two parameter anything you want
5, change /usr/local/lib/python3.9/site-packages/unidic/download.py line 63, comment the download_process
then execut python -m unidic download again , it will be OK

from melotts.

liurongsheng avatar liurongsheng commented on May 14, 2024

确实需要梯子才行

from melotts.

gotoolkits avatar gotoolkits commented on May 14, 2024

这个库是必须的还是可以忽略此下载?

from melotts.

YingjiaoLiu avatar YingjiaoLiu commented on May 14, 2024

用梯子下载好zip然后如何安装呢?远程服务器没法用命令python3 -m unidic download安装

from melotts.

Game5048-bilibili avatar Game5048-bilibili commented on May 14, 2024

我也想问qwq,大家都是怎么安装的

from melotts.

Game5048-bilibili avatar Game5048-bilibili commented on May 14, 2024

我解决了

from melotts.

zhangguangxun avatar zhangguangxun commented on May 14, 2024

我解决了

请教一下怎么解决的呢?

from melotts.

Game5048-bilibili avatar Game5048-bilibili commented on May 14, 2024

首先你需要pip install unidec
然后找你的python的路径,我这里是venv所以就拿venv说
我的路径是./python_venv/Lib/site-packages
接着你需要找unidecunidec_lite两个文件夹
我当时发现是unidec_lite中有个dicdir文件夹,而unidec中没有,而且报错中显示的目标也在这个文件夹中,所以我把dicdir复制了一份到unidec文件夹中,然后就可以了。

但是因为网络问题,这个程序还要下载亚马逊和huggingface里的配置文件和模型,我尝试过手动导入,但是我代码基础差看不懂,所以还是运行不了,你们如果解决了麻烦告诉我!!提前说声感谢

from melotts.

Game5048-bilibili avatar Game5048-bilibili commented on May 14, 2024

首先你需要pip install unidec 然后找你的python的路径,我这里是venv所以就拿venv说 我的路径是./python_venv/Lib/site-packages 接着你需要找unidecunidec_lite两个文件夹 我当时发现是unidec_lite中有个dicdir文件夹,而unidec中没有,而且报错中显示的目标也在这个文件夹中,所以我把dicdir复制了一份到unidec文件夹中,然后就可以了。

但是因为网络问题,这个程序还要下载亚马逊和huggingface里的配置文件和模型,我尝试过手动导入,但是我代码基础差看不懂,所以还是运行不了,你们如果解决了麻烦告诉我!!提前说声感谢

要是需要我提供文件夹请@我

from melotts.

zhangguangxun avatar zhangguangxun commented on May 14, 2024

首先你需要pip install unidec 然后找你的python的路径,我这里是venv所以就拿venv说 我的路径是./python_venv/Lib/site-packages 接着你需要找unidecunidec_lite两个文件夹 我当时发现是unidec_lite中有个dicdir文件夹,而unidec中没有,而且报错中显示的目标也在这个文件夹中,所以我把dicdir复制了一份到unidec文件夹中,然后就可以了。

但是因为网络问题,这个程序还要下载亚马逊和huggingface里的配置文件和模型,我尝试过手动导入,但是我代码基础差看不懂,所以还是运行不了,你们如果解决了麻烦告诉我!!提前说声感谢

感谢!我去试一下,感谢分享,有进展继续交流!

from melotts.

Game5048-bilibili avatar Game5048-bilibili commented on May 14, 2024

呃,我已经全部解决了!

from melotts.

MissingTwins avatar MissingTwins commented on May 14, 2024

Try this in windows cmd

set HTTP_PROXY=http://127.0.0.1:7890
set HTTPS_PROXY=http://127.0.0.1:7890
python -m unidic download

Try this in bash

export HTTP_PROXY=http://127.0.0.1:7890
export HTTPS_PROXY=http://127.0.0.1:7890
python -m unidic download

from melotts.

Game5048-bilibili avatar Game5048-bilibili commented on May 14, 2024

Try this in windows cmd

set HTTP_PROXY=http://127.0.0.1:7890
set HTTPS_PROXY=http://127.0.0.1:7890
python -m unidic download

Try this in bash

export HTTP_PROXY=http://127.0.0.1:7890
export HTTPS_PROXY=http://127.0.0.1:7890
python -m unidic download

Yeah! It works!
Before inputing these, you need a proxy to connect AWS.

from melotts.

hey135 avatar hey135 commented on May 14, 2024

呃,我已经全部解决了!

怎么解决的呀

from melotts.

Super-Tree avatar Super-Tree commented on May 14, 2024

1, manaul download the unidic.zip from https://cotonoha-dic.s3-ap-northeast-1.amazonaws.com/unidic-3.1.0.zip, 2, cp unidic-3.1.0.zip to /usr/local/lib/python3.9/site-packages/unidic/ and rename it to unidic.zip 3, change /usr/local/lib/python3.9/site-packages/unidic/download.py line 93 , function download_version, comment all except download_and_clean(), 4, change the download_and_clean two parameter anything you want 5, change /usr/local/lib/python3.9/site-packages/unidic/download.py line 63, comment the download_process then execut python -m unidic download again , it will be OK

Yes,it works!

from melotts.

zhangguangxun avatar zhangguangxun commented on May 14, 2024

1, manaul download the unidic.zip from https://cotonoha-dic.s3-ap-northeast-1.amazonaws.com/unidic-3.1.0.zip, 2, cp unidic-3.1.0.zip to /usr/local/lib/python3.9/site-packages/unidic/ and rename it to unidic.zip 3, change /usr/local/lib/python3.9/site-packages/unidic/download.py line 93 , function download_version, comment all except download_and_clean(), 4, change the download_and_clean two parameter anything you want 5, change /usr/local/lib/python3.9/site-packages/unidic/download.py line 63, comment the download_process then execut python -m unidic download again , it will be OK

It works and help a lot

from melotts.

zhangguangxun avatar zhangguangxun commented on May 14, 2024

呃,我已经全部解决了!

怎么解决的呀

unidic的下载你可以参考morganwang010的方法,我试过是可行的
hugging face上的模型下载你可以考虑切换镜像源下载
参考配置代码pip install -U huggingface_hub export HF_ENDPOINT=https://hf-mirror.com
nltk的下载问题可以参考知乎文章:https://zhuanlan.zhihu.com/p/347931749
我通过上述方法调通了

from melotts.

yiJianX avatar yiJianX commented on May 14, 2024

from melotts.

iskefu avatar iskefu commented on May 14, 2024

首先你需要pip install unidec 然后找你的python的路径,我这里是venv所以就拿venv说 我的路径是./python_venv/Lib/site-packages 接着你需要找unidecunidec_lite两个文件夹 我当时发现是unidec_lite中有个dicdir文件夹,而unidec中没有,而且报错中显示的目标也在这个文件夹中,所以我把dicdir复制了一份到unidec文件夹中,然后就可以了。
但是因为网络问题,这个程序还要下载亚马逊和huggingface里的配置文件和模型,我尝试过手动导入,但是我代码基础差看不懂,所以还是运行不了,你们如果解决了麻烦告诉我!!提前说声感谢

感谢!我去试一下,感谢分享,有进展继续交流!

这个可以解决python -m unidic download网络错误问题,
我开魔法也解决不了,这样确实解决了
剩下的就是开魔法一路通行,还要下个几百m

from melotts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.