A drink-fuelled thug who launched a violent attack on a woman at his Shipley flat has been jailed for more than five years.