I am doing a graduation project on Word Sense Disambiguation (WSD)
I have one problem in my code
I could not develop a code which can do the following: I want to store string values in this structure
root
/ \
A B
/ / \ / / \
C D E C D E
and then I want to traverse every path in this structure and store it in a jagged array (Array of Array) and each array inside this jagged array should contain the traversed node's values like this (ignoring the root node)
A C
A D
A E
B C
B D
B E
Any idea on how to do that ?
Here is what exactly I need... This array would be given
string[][] English_Senses = new string[][] { new string[] { "hit", "multiply" }, new string[] { "man", "leg" } };
I need a code that could fill up the following jagged array with the following values
string[,] Features = new string{{"hit","man"},{"hit","leg"},{"mutiply","man"},{"multiply","leg"}};
I hope someone can help me with this.
Note the size of the English_Senses array is not known until run time and it can be of any size and can be consist of any No. of arrays and each array inside this jagged array can have any No. of element..