Updated validator to compare token offsets with sentence offsets.