how to sex cannabis seeds

Is there a way to determine the sex of a cannabis seed before planting it? What are the signs of a male or female seed? Can I sex the seed and then sell the unwanted ones?