13. A method of parsing strings comprising: accessing, at a processor, a process for generating strings, the process having one or more probability distributions representing possible strings involved in the process; receiving, at the processor, at least one partial example; updating the one or more probability distributions by carrying out inference using the at least one partial example; and using the updated probability distributions to complete the at least one partial example.
17. A method as claimed in claim 13 comprising obtaining a plurality of complete examples of strings compatible with the process by using the at least one partial example and the updated probability distributions, and updating the one or more probability distributions by carrying out inference using the complete examples.