Difference between revisions of "User:Popcorndude/Recursive Transfer"
Popcorndude (talk | contribs) (use real example) |
Popcorndude (talk | contribs) |
||
Line 5: | Line 5: | ||
All my code is on GitHub at https://github.com/mr-martian/GSoC19-recursive |
All my code is on GitHub at https://github.com/mr-martian/GSoC19-recursive |
||
=== 3/4/19 === |
|||
So far |
So far I have reimplemented the Python script from the prototype and added support for attribute categories and parameterized nodes. |
||
Example: |
Example: |
||
Line 15: | Line 16: | ||
The defines a category "gender" consisting of <m> and <f>. The lexical categories "noun" and "adj", matching things of the form "word<n><C>" and "word<adj><C>", respectively, where C is <m> or <f>. The last line defines a non-terminal node "NP" which matches a noun followed by an adjective of the same gender, so "carro<n><m>/car<n> rojo<adj><m>/red<adj>" would become "rojo<adj><m>/red<adj> carro<n><m>/car<n>" but "carro<n><m>/car<n> roja<adj><f>" would not be matched. |
The defines a category "gender" consisting of <m> and <f>. The lexical categories "noun" and "adj", matching things of the form "word<n><C>" and "word<adj><C>", respectively, where C is <m> or <f>. The last line defines a non-terminal node "NP" which matches a noun followed by an adjective of the same gender, so "carro<n><m>/car<n> rojo<adj><m>/red<adj>" would become "rojo<adj><m>/red<adj> carro<n><m>/car<n>" but "carro<n><m>/car<n> roja<adj><f>" would not be matched. |
||
=== 3/12/19 === |
|||
I rewrote a portion of the English->Spanish noun phrase rules in a potential transfer formalism. https://github.com/mr-martian/GSoC19-recursive/blob/master/eng-spa.rtx |
Revision as of 19:05, 12 March 2019
Coding Challenge
All my code is on GitHub at https://github.com/mr-martian/GSoC19-recursive
3/4/19
So far I have reimplemented the Python script from the prototype and added support for attribute categories and parameterized nodes.
Example:
gender = m f; #noun $gender -> #(n.$gender); #adj $gender -> #(adj.$gender); NP $gender -> noun adj { 2 1 } ;
The defines a category "gender" consisting of <m> and <f>. The lexical categories "noun" and "adj", matching things of the form "word<n><C>" and "word<adj><C>", respectively, where C is <m> or <f>. The last line defines a non-terminal node "NP" which matches a noun followed by an adjective of the same gender, so "carro<n><m>/car<n> rojo<adj><m>/red<adj>" would become "rojo<adj><m>/red<adj> carro<n><m>/car<n>" but "carro<n><m>/car<n> roja<adj><f>" would not be matched.
3/12/19
I rewrote a portion of the English->Spanish noun phrase rules in a potential transfer formalism. https://github.com/mr-martian/GSoC19-recursive/blob/master/eng-spa.rtx