Text this: Automated stratigraphic classification and feature detection from images of borehole cores