-
Notifications
You must be signed in to change notification settings - Fork 39
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
[Bug] error in typing_metric.py #24
Comments
Hi, could you please provide more details about this issue? e.g., the config file you run, the environments, and screenshots. These will help us find the problem, thanks. |
Please see below for the config file (only the source and target emb files are changed according to the instruction). I'm not sure what information I should provide regarding the environment (except pip freeze above) and screenshots? Thanks. config file: task: entity-typing dataset: preprocessor: data_collator: MultiLabelConcatTypingDataCollatorWithPadding model: train: evaluation: |
could you successfully run the default npcrf example? |
how do i run the default example? it requires PATH_TO_DIR to be replaced, which is what I did. |
It seems that your configuration is incorrect, the above shows the default configuration. The glove path can be downloaded from the official stanford website: https://nlp.stanford.edu/data/glove.6B.zip. |
thank you for your answer. according to the readme in the NPCRF directory: "NPCRF requires static label embeddings, the preprocessed label embeddings (from GloVe for EN, Tencent for ZH) can be downloaded here: UFET, CFET, and you can place them in yoru folder and run the following config: (you need to reset your target_emb_dir in the config). Or you can provide the path of the glove embedding file (e.g., /path/to/your/glove.6B.300d.txt) and the code will generate label embedding for you." so i cannot use the glove.300.emb given in this description? |
Could you please give a screenshot of the error message? |
oops, it seems that the bug is caused by the latest update of adaseq in the typing metric. No problem occurs in the training and loading label embeddings, a quick fix could be downgrading the adaseq to 0.6.2 and modelscope to 1.4.2. |
thanks for the reply. i did |
Checklist before your report.
master
branch of AdaSeq.What happened?
error occurred during the evaluation phase of the training script for entity typing.
Python traceback
show/hide
Operating system
Ubuntu 22.04.2 LTS
Python version
3.10.6
Output of pip freeze
show/hide
How to reproduce
show/hide
Code of Conduct
The text was updated successfully, but these errors were encountered: