Go into the export_descr_units.txt file and replace the primary weapon stats from "pilum" to "sword", and change the secondary weapon stats to 0 and "none" (look at other units to see what to write). It'll still be there, being built into the model, but it won't come up in the game. Just the swords.

Oh, and remove the "prec ap" attribute. Put in "no."