On the Relationship Between Lexical Semantics and Syntax for the Inference of Context-Free Grammars