Neither did Ephraim drive out the Canaanites that dwelt in Gezer; but the Canaanites dwelt in Gezer among them.
Ephraim didn't remove the Canaanites living in Gezer, they continued to live there with them.
* Work in progress - there may be occasional inaccuracies