I have a large list of phrases such as
"Nola jumped off the cliff"
"Loroy jumped off the cliff"
"Nola jumped off the couch"
"Leroy lept off the couch"
I need to find every point of the phrase, which is a different word, and add this word to the node, which is a list of words that can be used at this position in the phrase. So we are done.
"Node1(1) Node2(1) off the Node3(1)"
"Node1(2) Node2(1) off the Node3(1)"
...etc
Where node 1 represents a list of names (Nola, Leroy), node2 represents a list of actions (jumped, lept), and node3 ends with a list of locations (cliff, couch)
The idea is to take a list of phrases and automatically create nodes and fill it with words that can be used in this node phrase.
So 1st, how would I generate a list of phrase nodes? I was not able to figure out how to compare the two sentences and see if they exactly match the minus of one word.
2- , , ? (, )