A Roxbury woman was sentenced to 8 to 11 years in state prison Wednesday after she pleaded guilty to stabbing four strangers at a Dorchester hotel in 2023, officials said.