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

Command line examples #4

Open
pvcastro opened this issue Jul 5, 2024 · 3 comments
Open

Command line examples #4

pvcastro opened this issue Jul 5, 2024 · 3 comments

Comments

@pvcastro
Copy link

pvcastro commented Jul 5, 2024

Hi there!
Congratulations for the work!
Do you mind sharing some sample command lines for running each step of the pipeline mentioned in the README? I feel like I'm having to make too many changes to the code, and maybe it's because I'm not passing each parameter accordingly. For an example, the active_annotate script, for the relation extraction task using retacred, is giving me a hard time. The features loaded from the Processor aren't working, it's always giving a different exception at some point.
Thanks!

@ridiculouz
Copy link
Owner

Hi Pedro,
If you are facing ImportError with the relative import problems, you can first try running these scripts with -m option, e.g. python -m src.demo_retrieval. See #3 for previous discussion.
Feel free to reach out if you have any further problems!

@pvcastro
Copy link
Author

Hi @ridiculouz , no, I got around those just fine. I'm running into runtime exceptions due to labels being none, things like that. For instance, in src/data/re_reader.py, all samples end up having None labels because they are not in cache, and the labels aren't set anywhere else.

@ridiculouz
Copy link
Owner

Ah I see.
The cache file stores all samples labeled by GPT, and if the labeling process fails due to connection error or sth, it will end up with None label.

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