Are these songs bought from iTunes, or from somewhere else? If the songs are not from iTunes (if they were, they would have the genre field filled), then you can't get what iTunes has for the file. You'd have to do it manually or find some program that does it (not sure of any).