Sam Allardyce is hopeful of signing the former Real Madrid midfielder Lassana Diarra after confirming the France international is training with the Hammers.

Diarra, 29, has been without a club since leaving Lokomotiv Moscow in August but is not too far away from match-fitness and could be turning out for West Ham inside a fortnight if the expected deal is completed in the coming days.

“He is training with us,” Allardyce said. “I’m not so sure whether we have finalised a deal yet but he is doing a little bit of training with us. The deal is very close to being finalised and on the basis of where we are with our squad and the injuries, once we have him fit he will be a very good addition based on his previous record as a footballer.”

Diarra’s spell in Moscow ended acrimoniously after reports he refused to train following a bust-up with the manager Leonid Kuckuk but, despite not playing in almost nine months, Allardyce believes the ex-Chelsea, Arsenal and Portsmouth man could soon be part of his first-team squad at Upton Park.

“He won’t be in any good shape in terms of being on the bench on Wednesday or on the bench on Saturday against West Brom,” added Allardyce.

“But I certainly hope that, with a good few days training with the lads, he will be close in seven to 10 days if he finally signs the contract.”