For a schoolproject, I want to parse a sentence and process it's properties. This is an example of the input I get in my program (string):
root(ROOT-0, bring-1)
det(muck-3, a-2)
dobj(bring-1, muck-3)
det(guy-6, that-5)
prep_to(bring-1, guy-6)
The length of this list is variable and the output properties are different for every sentence.
Now, I want to parse this structure to an array structure, for example:
root ROOT 0 bring 1
det muck 3 a 2
etc.
What would be the best attempt? I am unable to find a good solution searching the internet, because of the 'strange' input structure.
Thanks in advance.