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

Error when execute python generate_tasks.py +task_args=TACRED #2

Open
anhnh2002 opened this issue Nov 18, 2024 · 0 comments
Open

Error when execute python generate_tasks.py +task_args=TACRED #2

anhnh2002 opened this issue Nov 18, 2024 · 0 comments

Comments

@anhnh2002
Copy link

Error executing job with overrides: ['+task_args=TACRED']
Traceback (most recent call last):
File "/mnt/anhnh/RationaleCL/generate_tasks.py", line 66, in
main()
File "/mnt/anhnh/miniconda3/envs/commonenv/lib/python3.10/site-packages/hydra_core-1.3.2-py3.10.egg/hydra/main.py", line 94, in decorated_main
_run_hydra(
File "/mnt/anhnh/miniconda3/envs/commonenv/lib/python3.10/site-packages/hydra_core-1.3.2-py3.10.egg/hydra/_internal/utils.py", line 394, in _run_hydra
_run_app(
File "/mnt/anhnh/miniconda3/envs/commonenv/lib/python3.10/site-packages/hydra_core-1.3.2-py3.10.egg/hydra/_internal/utils.py", line 457, in _run_app
run_and_report(
File "/mnt/anhnh/miniconda3/envs/commonenv/lib/python3.10/site-packages/hydra_core-1.3.2-py3.10.egg/hydra/_internal/utils.py", line 223, in run_and_report
raise ex
File "/mnt/anhnh/miniconda3/envs/commonenv/lib/python3.10/site-packages/hydra_core-1.3.2-py3.10.egg/hydra/_internal/utils.py", line 220, in run_and_report
return func()
File "/mnt/anhnh/miniconda3/envs/commonenv/lib/python3.10/site-packages/hydra_core-1.3.2-py3.10.egg/hydra/_internal/utils.py", line 458, in
lambda: hydra.run(
File "/mnt/anhnh/miniconda3/envs/commonenv/lib/python3.10/site-packages/hydra_core-1.3.2-py3.10.egg/hydra/_internal/hydra.py", line 132, in run
_ = ret.return_value
File "/mnt/anhnh/miniconda3/envs/commonenv/lib/python3.10/site-packages/hydra_core-1.3.2-py3.10.egg/hydra/core/utils.py", line 260, in return_value
raise self._return_value
File "/mnt/anhnh/miniconda3/envs/commonenv/lib/python3.10/site-packages/hydra_core-1.3.2-py3.10.egg/hydra/core/utils.py", line 186, in run_job
ret.return_value = task_function(task_cfg)
File "/mnt/anhnh/RationaleCL/generate_tasks.py", line 63, in main
generate_data_fewrel_tacred(args=args)
File "/mnt/anhnh/RationaleCL/generate_tasks.py", line 31, in generate_data_fewrel_tacred
sampler = data_sampler(config=args, seed=args.seed + i * 100, tokenizer=tokenizer)
File "/mnt/anhnh/RationaleCL/data/TACREDFewRel.py", line 27, in init
self.training_dataset, self.valid_dataset, self.test_dataset = self._read_data()
File "/mnt/anhnh/RationaleCL/data/TACREDFewRel.py", line 144, in _read_data
assert head_start_pos != -1 and head_end_pos != -1 and tail_start_pos != -1 and tail_end_pos != -1
AssertionError

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

1 participant