Semiconductor to metal transition in MoTe2