Tracing and Reducing Lexical Ambiguity in Automatically Inferred Grammars