It should not be too hard to extend this to Lambek grammars. [This](https://www.researchgate.net/profile/Christian_Retore/publication/228559722_Learning_rigid_lambek_grammars_and_minimalist_grammars_from_structured_sentences/links/0912f510857e976b39000000.pdf) might help.