Add code for transforming hpoterm entities to mentions