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 in finding gold oracles #5

Open
raypretam opened this issue May 17, 2023 · 0 comments
Open

Error in finding gold oracles #5

raypretam opened this issue May 17, 2023 · 0 comments

Comments

@raypretam
Copy link

I am using UD CONLLX dataset. Getting error when trying python gen_oracle_seq.py /home/kunal_pg/G2GTr/data/gold/train.conllx train.seq --transsys ASd --mappings mappings-ud.txt. I have changed the parserstate.py and transition.py files are per readme file.
The error that is coming Traceback (most recent call last): File "gen_oracle_seq.py", line 21, in <module> gold_states = read_gold_parserstates(fin, transsys, args.fpos) File "/home/kunal_pg/G2GTr/arc-swift/src/utils.py", line 451, in read_gold_parserstates res += [processlines(lines)] File "/home/kunal_pg/G2GTr/arc-swift/src/utils.py", line 437, in processlines res = [ParserState(["<ROOT>"] + lines, transsys=transsys, goldrels=arcs), pos] File "/home/kunal_pg/G2GTr/arc-swift/src/parserstate.py", line 21, in __init__ self.proj_order = self.build_inorder() File "/home/kunal_pg/G2GTr/arc-swift/src/parserstate.py", line 45, in build_inorder ''.format(len(sentence),len(new_tokens),parent_ids) AssertionError: before inorder,sent:11,inoder:7,parent_ids:[-1, 6, 1, 1, 6, 4, 0, 8, 9, 10, 8]

I think the error is in the inorder function in the parserstate.py file.

Thanks and Best Regards.

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