понедельник, 6 июля 2009 г.

Examples 2

Construe a bottom-up begins with the words in the sentence. Again, the analysis is conducted from left to right, and first applied the rule with the lowest number. So, the first word of first sentence "they" refers to the background of rule 9, which after the issuing the statement that "they" is a pronoun (PRO). Then the rule 3 and shall issue, that "they" is the NP. NP corresponds background of 1 and 5, but none of these rules are not yet due, so the analysis moves to the "are". You rule 11 (despite the fact that Rule 12 is also due, it was not performed in accordance with the rule of the sequence of rules). Then the rule 10, 8 and 2 (Fig. 3a). At this stage, further analysis of the sequence of NP + AUX + ADJ + NP is impossible, so we return to the last due, but not yet implemented the rule, ie to rule 4. Analysis of the sequence of NP + AUX + NP as possible, so once again with the last due to unfulfilled. Now that rule 13, which gives that "flying" is a V. Then the rules of 6 and 5 (Fig. 3c). Collation posledovatellnosti NP + AUX + VP is not possible, therefore, carried out to 7 and gives the assertion that "are flying" is the VT. Then try to obey rules 1 and 5, to what ends, and syntactic parsing (Fig. 3d).

This example was carried out to compare the mechanisms of syntactic parsing from the bottom up and top down. Establishing a strict order from left to right parsing and numbering of the rules due to the desire to use the most similar algorithm, despite the fact that parsing results were different.

Комментариев нет:

Отправить комментарий