Skip to content
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

Optional: Set up NLTK packages这个是什么意思呀,可以帮忙讲解一下吗 #38

Open
motuomumu opened this issue Nov 30, 2022 · 5 comments

Comments

@motuomumu
Copy link

Optional: Set up NLTK packages

if [[ -f punkt.zip ]]; then
mkdir -p /home/admin/nltk_data/tokenizers
cp punkt.zip /home/admin/nltk_data/tokenizers
fi
if [[ -f wordnet.zip ]]; then
mkdir -p /home/admin/nltk_data/corpora
cp wordnet.zip /home/admin/nltk_data/corpora
fi
不明白这个什么意思,研一学生求求了

@chiayewken
Copy link
Owner

Hi, the purpose of these commands is to use pre-downloaded NLTK packages if they are available, because they may be slow to download in some countries.

However, it is optional because NLTK will automatically download them from the official server if the files are not available.

@motuomumu
Copy link
Author

嗨,这些命令的目的是使用预下载的NLTK 包(如果可用),因为它们在某些国家/地区下载速度可能很慢。

但是,它是可选的,因为如果文件不可用,NLTK 将自动从官方服务器下载它们。

hi, File "span_model.py", line 16, in
from span_model.models.ner import NERTagger
File "/home/yons/zml/Span-ASTE/Span-ASTE-main/span_model/models/span_model.py", line 16, in
from span_model.models.ner import NERTagger
ModuleNotFoundError: No module named 'span_model.models'; 'span_model' is not a package
这个问题是什么意思呀,急急急

@chiayewken
Copy link
Owner

Hi, what is the command that you ran, is it following the model training steps here?

https://github.com/chiayewken/Span-ASTE#model-training

@motuomumu
Copy link
Author

我直接执行的span_model/models/span_model.py 这句话,我哭了,研一学生想要运行代码好难呀,哭了
https://github.com/chiayewken/Span-ASTE#model-training 这个链接里面的步骤也不是很明白,可以加一个联系方式吗?

@chiayewken
Copy link
Owner

Hi, after you have run the installation steps, you can run the training command below:

python aste/wrapper.py run_train_many \
--save_dir_template "outputs/14lap/seed_{}" \
--random_seeds [0,1,2,3,4] \
--path_train data/triplet_data/14lap/train.txt \
--path_dev data/triplet_data/14lap/dev.txt

Alternatively, you can try the demo notebooks here or here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants