Semi-inclusive structure functions in the spectator model