Fix similarity parsing, and update example scripts accordingly.