You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 theparserstate.py
andtransition.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.
The text was updated successfully, but these errors were encountered: