You can rehabilitate a slave by fitting rooms to your ship that aid in rehabilitation. Once the slave is ready, they will convert to a different crew type.