errorLocalizer function

Create a backtracker object for error localization