Word sense disambiguation using optimisation techniques