Woman sentenced to nearly 5 years in prison for infant's death