5 ms·
Yeah, I simply ingested words in French from a few online ballet dictionaries into a JSON object, and used a recursive context-free grammar to generate (general
by themadstork 9y ago
Yeah, I simply ingested words in French from a few online ballet dictionaries into a JSON object, and used a recursive context-free grammar to generate (generally) grammatically correct sentences. The result was a mixture of English and French because the dancer (Sarah Hay) requested that I add a few words of her choice in English as well.
Here's some information about context-free grammars:
http://www.decontextualize.com/teaching/rwet/recursion-and-context-free-grammars/ http://www.decontextualize.com/teaching/rwet/recursion-and-c...
- rhcom2 9y agoThe dictionary gives you the terms but how do you get the rules (like S -> NP VP) to combine them? Or were the rules the same as the English language just with the verbs from the ballet dictionary? Thank you for the link also.