Sex offender sentenced to corporal punishment in Louisiana