Similar Items: Learning of Structurally Unambiguous Probabilistic Grammars